mirror of
https://github.com/luxfi/design.git
synced 2026-10-30 16:58:57 +00:00
Monochrome, dark by default. One hue rendered through an opacity ladder. Tokens (color, type, spacing, radius, elevation, motion) + core/forms/navigation/ overlays components + brand guidelines + ui kit. The single source of truth for every Lux surface — loadable and editable.
14 lines
704 B
TypeScript
14 lines
704 B
TypeScript
/** Floating menu panel — 16px radius, blurred near-black fill, 8px padding. */
|
|
export interface DropdownMenuProps {
|
|
/** Which edge the panel aligns to. */
|
|
align?: 'left' | 'right';
|
|
/** Open on hover (the nav behaviour) instead of click. */
|
|
hover?: boolean;
|
|
trigger: React.ReactNode;
|
|
children?: React.ReactNode;
|
|
}
|
|
export function DropdownMenu(props: DropdownMenuProps): JSX.Element;
|
|
export function DropdownMenuItem(props: React.AnchorHTMLAttributes<HTMLAnchorElement> & { desc?: string }): JSX.Element;
|
|
export function DropdownMenuLabel(props: React.HTMLAttributes<HTMLSpanElement>): JSX.Element;
|
|
export function DropdownMenuSeparator(props: { style?: React.CSSProperties }): JSX.Element;
|