import { ReactNode } from 'react'; import { MenuTriggerProps as RaMenuTriggerProps, MenuProps as RaMenuProps } from 'react-aria-components'; import { ButtonProps } from '../button/button.types'; import { HTMLChakraProps, SlotRecipeProps } from '@chakra-ui/react/styled-system'; type SplitButtonRecipeProps = SlotRecipeProps<"nimbusSplitButton">; export type SplitButtonRootSlotProps = HTMLChakraProps<"div", SplitButtonRecipeProps>; export type SplitButtonButtonGroupSlotProps = HTMLChakraProps<"div">; export type SplitButtonPrimaryButtonSlotProps = HTMLChakraProps<"button">; export type SplitButtonTriggerSlotProps = HTMLChakraProps<"button">; export type SplitButtonProps = SplitButtonRecipeProps & Pick & Omit & Required, "onAction">> & { /** * Accessibility label for the dropdown trigger */ "aria-label": string; /** * Icon element to display in the primary button (automatically wrapped in Icon component) */ icon?: ReactNode; /** * Children should contain Menu components: Menu.Item, Menu.Section, Menu.Separator * * The component automatically selects the first enabled Menu.Item as the primary action. */ children: ReactNode; }; export {};