UNPKG

@moderntribe/wme-ui

Version:

Components and hooks to build the best UX/UI admin wizards

17 lines 600 B
import React from 'react'; /** * All the logic for the dropdown is handled in the component, but the developer will need to * pass in a click handler and keep track of the selected index for when the button is clicked. */ interface SplitButtonProps { options: Array<string>; handleClick: () => void; handleIndexChange: (arg: number) => void; ariaLabelGroup?: string; color?: 'primary' | 'secondary'; disabled?: boolean; selectedIndex: number; } declare const SplitButton: React.FC<SplitButtonProps>; export default SplitButton; //# sourceMappingURL=split-button.d.ts.map