MCPcopy Create free account
hub / github.com/mantinedev/ui.mantine.dev / SplitButton

Function SplitButton

lib/SplitButton/SplitButton.tsx:5–43  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

3import classes from './SplitButton.module.css';
4
5export function SplitButton() {
6 const theme = useMantineTheme();
7
8 return (
9 <Group wrap="nowrap" gap={0}>
10 <Button className={classes.button}>Send</Button>
11 <Menu transitionProps={{ transition: 'pop' }} position="bottom-end" withinPortal>
12 <Menu.Target>
13 <ActionIcon
14 variant="filled"
15 color={theme.primaryColor}
16 size={36}
17 className={classes.menuControl}
18 aria-label="More options"
19 >
20 <IconChevronDown size={16} stroke={1.5} />
21 </ActionIcon>
22 </Menu.Target>
23 <Menu.Dropdown>
24 <Menu.Item
25 leftSection={<IconCalendar size={16} stroke={1.5} color={theme.colors.blue[5]} />}
26 >
27 Schedule for later
28 </Menu.Item>
29 <Menu.Item
30 leftSection={<IconBookmark size={16} stroke={1.5} color={theme.colors.blue[5]} />}
31 >
32 Save draft
33 </Menu.Item>
34 <Menu.Item
35 leftSection={<IconTrash size={16} stroke={1.5} color={theme.colors.blue[5]} />}
36 >
37 Delete
38 </Menu.Item>
39 </Menu.Dropdown>
40 </Menu>
41 </Group>
42 );
43}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected