react-icons/fi#FiTriangle TypeScript Examples
The following examples show how to use
react-icons/fi#FiTriangle.
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: Home.tsx From mkn with MIT License | 6 votes |
Home: React.FC<IProps> = (props) => {
return (
<PageWrapper
className={cx(
styles['comp-wrapper'],
{ [styles['comp-wrapper--alwaysDarkMode']]: props.alwaysDarkMode },
`g-comp--${Home.displayName}`,
props.className,
)}
style={props.style}
>
<HtmlMeta title={config.pkg.name} disableSiteName />
<HugeIcon icon={<FiTriangle />} />
</PageWrapper>
);
}
Example #2
Source File: HeaderNavbar.tsx From mkn with MIT License | 5 votes |
HeaderNavbar: React.FC<IProps> = (props) => {
const { pathname, route, query } = useRouter();
const navs = [
{ to: '/', icon: <FiTriangle />, exact: true },
{ to: '/about', icon: <FiPercent />, exact: true },
{
to: '/about/darkmode',
active: '/about/[name]',
icon: <FiMoon />,
exact: true,
},
];
return (
<div
className={cx(
styles['comp-wrapper'],
{ [styles['comp-wrapper--alwaysDarkMode']]: props.alwaysDarkMode },
`g-comp--${HeaderNavbar.displayName}`,
props.className,
)}
style={props.style}
>
{navs.map((nav) => (
<Link href={nav.to} key={nav.to}>
{/* eslint-disable-next-line jsx-a11y/anchor-is-valid */}
<a
className={cx(styles['nav-link'], {
[styles['nav-link--active']]:
pathname === nav.active || pathname === nav.to,
})}
>
<Button type="ghost" className={styles['nav-button']}>
{nav.icon}
</Button>
</a>
</Link>
))}
</div>
);
}