vital-ui-kit-react
vital-ui-kit-react copied to clipboard
Improve menu and list customize options
- [x] menu height
- [ ] list link
Could you give us more details so I can takeover this issue maybe in May?
As I remember, List and ListItem do not support for link component ( react router or any other routing lib) I will add more details on monday
Cool. Thank you. I am not in a rush.
this is what my thought of adding support for router link component.
+ import { Link } from 'react-router';
<List>
- <List.Item hasLink>
+ <List.Item component={Link} hasLink>
</List>
I see. It looks like the as
prop in Semantic UI React.
A proper type for as
:
import React, { FC, ElementType } from 'react';
interface Props {
as?: ElementType;
}
const Comp: FC<Props> = ({ as: Comp = 'div' }) => {
return <Comp>hello</Comp>;
};