UNPKG

@vertisanpro/flowbite-react

Version:

Non-Official React components built for Flowbite and Tailwind CSS

35 lines (34 loc) 1.08 kB
import type { ComponentProps, ElementType, FC } from 'react'; import React from 'react'; import type { DeepPartial } from '../../types'; import type { FlowbiteColors } from '../Flowbite'; 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 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: React.ForwardRefExoticComponent<Pick<SidebarItemProps, keyof SidebarItemProps> & React.RefAttributes<Element>>;