webcoreui
Version:
UI component and template library for Astro, Svelte, and React apps styled with Sass.
21 lines (17 loc) • 441 B
text/typescript
import type { Snippet } from 'svelte'
export type ThemeSwitcherProps = {
themes: {
[key: string]: string
}
toggle?: boolean
size?: number
className?: string
}
export type SvelteThemeSwitcherProps = {
primaryIcon?: Snippet
secondaryIcon?: Snippet
} & ThemeSwitcherProps
export type ReactThemeSwitcherProps = {
primaryIcon?: React.ReactNode
secondaryIcon?: React.ReactNode
} & ThemeSwitcherProps