Private
Public Access
1
0
Files

17 lines
907 B
JavaScript

'use client';
import * as React from 'react';
import { renderCompoundButton_unstable } from './renderCompoundButton';
import { useCompoundButton_unstable } from './useCompoundButton';
import { useCompoundButtonStyles_unstable } from './useCompoundButtonStyles.styles';
import { useCustomStyleHook_unstable } from '@fluentui/react-shared-contexts';
/**
* CompoundButtons are buttons that can have secondary content that adds extra information to the user.
*/ export const CompoundButton = /*#__PURE__*/ React.forwardRef((props, ref)=>{
const state = useCompoundButton_unstable(props, ref);
useCompoundButtonStyles_unstable(state);
useCustomStyleHook_unstable('useCompoundButtonStyles_unstable')(state);
return renderCompoundButton_unstable(state);
// Casting is required due to lack of distributive union to support unions on @types/react
});
CompoundButton.displayName = 'CompoundButton';