UNPKG

mt-flowbite-react

Version:

Official React components built for Flowbite and Tailwind CSS

33 lines (32 loc) 1.05 kB
import type { ComponentProps, ElementType, FC, PropsWithChildren } from 'react'; import type { DeepPartial, FlowbiteColors } from '../../'; export interface FlowbiteSidebarItemTheme { active: string; base: string; collapsed: { insideCollapse: string; noIcon: string; }; content: { base: string; }; icon: { base: string; active: string; }; label: string; listItem: string; } export interface SidebarItemProps extends PropsWithChildren, Omit<ComponentProps<'div'>, 'ref'>, Record<string, unknown> { active?: boolean; as?: ElementType; href?: string; icon?: FC<ComponentProps<'svg'>>; label?: string; labelColor?: keyof SidebarItemLabelColors; theme?: DeepPartial<FlowbiteSidebarItemTheme>; } export interface SidebarItemLabelColors extends Pick<FlowbiteColors, 'gray'> { [key: string]: string; } export declare const SidebarItem: import("react").ForwardRefExoticComponent<Omit<SidebarItemProps, "ref"> & import("react").RefAttributes<Element>>;