react-feather#MoreHorizontal TypeScript Examples
The following examples show how to use
react-feather#MoreHorizontal.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: Trigger.tsx From calories-in with MIT License | 6 votes |
function Trigger({ forwardedRef, ...rest }: Props) {
return (
<IconButton
aria-label="Actions"
icon={<MoreHorizontal size={20} pointerEvents="none" />}
variant="ghost"
size="sm"
ref={forwardedRef}
{...rest}
/>
)
}
Example #2
Source File: MenuOrDrawer.tsx From calories-in with MIT License | 5 votes |
function MenuOrDrawer({ onImport, onClear, onViewFoods }: Props) {
const screenSize = useScreenSize()
const items = [
<MenuOrDrawerSeparator key="separator" />,
<MenuOrDrawerItem
key="importMealPlan"
icon={<DownloadStyled />}
onClick={onImport}
>
Import meal plan
</MenuOrDrawerItem>,
<MenuOrDrawerItem
key="manageFoods"
icon={<ListStyled />}
onClick={onViewFoods}
>
Manage foods
</MenuOrDrawerItem>,
]
if (screenSize <= ScreenSize.Small) {
items.unshift(
<MenuOrDrawerItem
key="clearMealPlan"
icon={<TrashStyled />}
onClick={onClear}
>
Clear
</MenuOrDrawerItem>
)
}
return (
<MenuOrDrawerBase
size="md"
title="More actions"
variant="solid"
mr={2}
icon={<MoreHorizontal size={20} />}
aria-label="More actions"
>
{items}
</MenuOrDrawerBase>
)
}
Example #3
Source File: MenuButtons.tsx From calories-in with MIT License | 5 votes |
MoreHorizontalStyled = chakra(MoreHorizontal)