@lobehub/ui
Version:
Lobe UI is an open-source UI component library for building AIGC web apps
16 lines (15 loc) • 470 B
TypeScript
import type { ThemeMode } from 'antd-style';
import type { ActionIconProps } from "../ActionIcon";
import type { DivProps } from "../types";
export interface ThemeSwitchProps extends DivProps {
labels?: {
auto: string;
dark: string;
light: string;
};
onThemeSwitch: (themeMode: ThemeMode) => void;
size?: ActionIconProps['size'];
themeMode: ThemeMode;
type?: 'icon' | 'select';
variant?: ActionIconProps['variant'];
}