@chakra-ui/icons#ArrowUpDownIcon TypeScript Examples
The following examples show how to use
@chakra-ui/icons#ArrowUpDownIcon.
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: ElementListItem.tsx From openchakra with MIT License | 5 votes |
ElementListItem = forwardRef(
(
{
type,
opacity = 1,
onSelect,
onMouseOut,
onMouseOver,
draggable,
name,
}: Props,
ref: React.Ref<HTMLDivElement>,
) => {
return (
<Box
boxSizing="border-box"
transition="margin 200ms"
my={1}
borderRadius="md"
p={1}
display="flex"
alignItems="center"
cursor={draggable ? 'move' : undefined}
opacity={opacity}
ref={ref}
onMouseOver={onMouseOver}
onMouseOut={onMouseOut}
>
<Flex justify="space-between" align="center" w="100%">
<Flex align="center">
{draggable && <ArrowUpDownIcon path="" fontSize="xs" mr={2} />}
<Text letterSpacing="wide" fontSize="sm" textTransform="capitalize">
{name || type}
</Text>
</Flex>
<ActionButton
label="Inspect"
onClick={onSelect}
icon={<SettingsIcon path="" />}
colorScheme="blackAlpha"
/>
</Flex>
</Box>
)
},
)