lumir-design-system-01
Version:
Lumir Design System 01 - Professional & Clean
18 lines (17 loc) • 500 B
TypeScript
import { ReactNode } from 'react';
import { SurfaceProps } from 'lumir-design-system-shared';
export type TabSize = 'lg' | 'md';
export interface TabItem {
id: string;
label: string;
content: ReactNode;
icon?: string;
disabled?: boolean;
}
export interface TabProps extends Omit<SurfaceProps, 'size' | 'onChange'> {
items: TabItem[];
defaultSelectedId?: string;
size?: TabSize;
showBorder?: boolean;
onChange?: (selectedId: string) => void;
}