UNPKG

@youwen/ai-design-system

Version:

Enterprise AI-driven design system with comprehensive design tokens

21 lines (20 loc) 936 B
/** * 主题切换器组件 * 提供直观的主题模式和变体切换界面 */ import * as React from "react"; import { type VariantProps } from "class-variance-authority"; declare const themeSwitcherVariants: (props?: ({ variant?: "default" | "outline" | "ghost" | null | undefined; size?: "default" | "sm" | "lg" | "icon" | null | undefined; } & import("class-variance-authority/types").ClassProp) | undefined) => string; interface ThemeSwitcherProps extends React.ButtonHTMLAttributes<HTMLButtonElement>, VariantProps<typeof themeSwitcherVariants> { showLabel?: boolean; showVariant?: boolean; } export declare function ThemeSwitcher({ className, variant, size, showLabel, showVariant, ...props }: ThemeSwitcherProps): JSX.Element; interface AdvancedThemeSwitcherProps { className?: string; } export declare function AdvancedThemeSwitcher({ className }: AdvancedThemeSwitcherProps): JSX.Element; export {};