View as Markdown

API reference: @salmonui/buttons/menu

SplitButtonfunction

import { SplitButton } from '@salmonui/buttons/menu';
function SplitButton(props: SplitButtonProps): ReactElement;

A primary Button and a menu trigger joined in one group: two tab stops; the trigger follows the Menu Button keys and Alt+ArrowDown on the primary part opens the menu too. tone, variant, size and disabled apply to both parts; other DOM props and onClick go to the primary button.