UNPKG

@redocly/theme

Version:

Shared UI components lib

19 lines (18 loc) 838 B
import type { CSSProperties, ReactNode, PropsWithChildren, JSX } from 'react'; import type { LinkProps } from '../../components/Link/Link'; export type DropdownMenuItemProps = Partial<Pick<LinkProps, 'to' | 'target' | 'external'>> & { prefix?: ReactNode; suffix?: ReactNode; content?: ReactNode; separatorLine?: boolean; dataAttributes?: Record<string, string>; className?: string; style?: CSSProperties; role?: string; separator?: boolean; disabled?: boolean; dangerous?: boolean; onAction?: () => void; active?: boolean; }; export declare function DropdownMenuItem({ children, content, active, onAction, to, dangerous, prefix, suffix, disabled, separator, dataAttributes, className, separatorLine, style, role, ...otherProps }: PropsWithChildren<DropdownMenuItemProps>): JSX.Element;