UNPKG

@vertisanpro/flowbite-react

Version:

Non-Official React components built for Flowbite and Tailwind CSS

17 lines (16 loc) 707 B
import type { ComponentProps, ComponentPropsWithoutRef, ElementType, FC } from 'react'; import React from 'react'; import type { DeepPartial } from '../../types'; export interface FlowbiteDropdownItemTheme { container: string; base: string; icon: string; } export type DropdownItemProps<T extends ElementType = 'button'> = { as?: T; href?: string; icon?: FC<ComponentProps<'svg'>>; onClick?: () => void; theme?: DeepPartial<FlowbiteDropdownItemTheme>; } & ComponentPropsWithoutRef<T>; export declare const DropdownItem: <T extends ElementType = "button">({ children, className, icon: Icon, onClick, theme: customTheme, ...props }: DropdownItemProps<T>) => React.JSX.Element;