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.
13 lines
559 B
TypeScript
13 lines
559 B
TypeScript
/** Transient confirmation. Mount <Toaster /> once, then call toast() from anywhere. */
|
|
export interface ToasterProps {
|
|
/** Auto-dismiss in ms. */
|
|
duration?: number;
|
|
position?: 'bottom-right' | 'top-right';
|
|
}
|
|
export function Toaster(props: ToasterProps): JSX.Element;
|
|
export interface ToastOptions { description?: string; tone?: 'default' | 'success' | 'error' }
|
|
export const toast: ((message: string, opts?: ToastOptions) => number) & {
|
|
success(message: string, opts?: ToastOptions): number;
|
|
error(message: string, opts?: ToastOptions): number;
|
|
};
|