mirror of
https://github.com/jeffvli/feishin.git
synced 2026-06-18 01:14:22 +02:00
properly handle overflow on sidebar items (#971)
This commit is contained in:
@@ -10,13 +10,20 @@ interface SidebarItemProps extends ButtonProps {
|
||||
to: LinkProps['to'];
|
||||
}
|
||||
|
||||
export const SidebarItem = ({ children, to, ...props }: SidebarItemProps) => {
|
||||
export const SidebarItem = ({ children, className, to, ...props }: SidebarItemProps) => {
|
||||
return (
|
||||
<Button
|
||||
className={clsx({
|
||||
[styles.disabled]: props.disabled,
|
||||
[styles.link]: true,
|
||||
})}
|
||||
className={clsx(
|
||||
{
|
||||
[styles.disabled]: props.disabled,
|
||||
[styles.link]: true,
|
||||
},
|
||||
className,
|
||||
)}
|
||||
classNames={{
|
||||
inner: styles.inner,
|
||||
label: styles.label,
|
||||
}}
|
||||
component={Link}
|
||||
to={to}
|
||||
variant="subtle"
|
||||
|
||||
Reference in New Issue
Block a user