react-icons/io#IoIosArrowDropdownCircle TypeScript Examples
The following examples show how to use
react-icons/io#IoIosArrowDropdownCircle.
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: ButtonCustomize.tsx From nextclade with MIT License | 6 votes |
export function ButtonCustomize({ isOpen, onClick, ...props }: PropsWithChildren<ButtonCustomizeProps>) {
const { t } = useTranslationSafe()
const theme = useTheme()
const iconClassName = useMemo(() => classNames('my-auto mr-1', isOpen ? 'icon-rotate-0' : 'icon-rotate-90'), [isOpen])
const customizeButtonText = useMemo(
() => (isOpen ? t('Hide dataset files') : t('Customize dataset files')),
[isOpen, t],
)
return (
<CustomizeButton type="button" color="link" onClick={onClick} {...props}>
<IoIosArrowDropdownCircle color={theme.gray650} size={25} className={iconClassName} />
{customizeButtonText}
</CustomizeButton>
)
}