@starter-ui/core
Version:
This is a UI Components built with the utility classes from Tailwind CSS.
28 lines (27 loc) • 1.04 kB
TypeScript
import { PropsWithChildren, ReactNode } from 'react';
interface Props {
id?: string;
disabled?: boolean;
open?: boolean;
bordered?: boolean;
align?: 'center' | 'start' | 'end';
position?: 'top' | 'bottom';
trigger?: 'click' | 'hover';
renderButton?: ReactNode;
className?: string;
buttonClassName?: string;
overlayClassName?: string;
contentClassName?: string;
onOpenChange?: (open: boolean) => void;
onClickOutside?: () => void;
}
interface DropdownItemProps {
disabled?: boolean;
className?: string;
onClick?: () => void;
}
declare const Dropdown: {
({ id, children, open, disabled, bordered, align, position, trigger, className, buttonClassName, overlayClassName, contentClassName, renderButton, onOpenChange, onClickOutside, }: PropsWithChildren<Props>): import("react/jsx-runtime").JSX.Element;
Item: ({ children, disabled, className, onClick }: PropsWithChildren<DropdownItemProps>) => import("react/jsx-runtime").JSX.Element;
};
export default Dropdown;