UNPKG

@theguild/components

Version:
24 lines (21 loc) 1.13 kB
import * as react_jsx_runtime from 'react/jsx-runtime'; interface DropdownProps extends React.ComponentPropsWithoutRef<'div'> { children: React.ReactNode; type: 'hover' | 'click'; } declare function Dropdown({ children, className, type, ...props }: DropdownProps): react_jsx_runtime.JSX.Element; interface DropdownTriggerProps extends React.ComponentPropsWithoutRef<'button'> { children: React.ReactNode; } declare function DropdownTrigger({ children, className, ...props }: DropdownTriggerProps): react_jsx_runtime.JSX.Element; interface DropdownContentProps extends React.ComponentPropsWithoutRef<'div'> { children: React.ReactNode; } declare function DropdownContent({ children, className, ...props }: DropdownContentProps): react_jsx_runtime.JSX.Element; interface DropdownItemProps extends React.HTMLAttributes<HTMLElement> { children: React.ReactNode; onClick?: () => void; href?: string; } declare function DropdownItem({ children, onClick, className, href, ...props }: DropdownItemProps): react_jsx_runtime.JSX.Element; export { Dropdown, DropdownContent, DropdownItem, DropdownTrigger };