UNPKG

@dvcol/neo-svelte

Version:

Neomorphic ui library for svelte 5

55 lines (54 loc) 1.47 kB
import type { Snippet } from 'svelte'; import type { NeoButtonGroupProps } from '../buttons/neo-button-group.model.js'; import type { NeoButtonProps } from '../buttons/neo-button.model.js'; import type { INeoThemeProviderContext } from './neo-theme-provider.model.js'; export type NeoThemeSelectorProps = { /** * Any children to display in the theme selector. */ children?: Snippet<[INeoThemeProviderContext]>; /** * Whether to show the reset style button or not. */ reset?: boolean; /** * Whether to show the dark/light theme button or not. */ theme?: boolean; /** * The label to show in the theme selector. * * @default Theme */ themeLabel?: string; /** * Whether to show the light source button or not. */ source?: boolean; /** * The label to show in the source selector. * * @default Source */ sourceLabel?: string; /** * Whether to show the remember button or not. */ remember?: boolean; /** * The props to pass to the reset button. */ resetProps?: NeoButtonProps; /** * The props to pass to the theme button. */ themeProps?: NeoButtonProps; /** * The props to pass to the source button. */ sourceProps?: NeoButtonProps; /** * The props to pass to the remember button. */ rememberProps?: NeoButtonProps; } & Omit<NeoButtonGroupProps, 'children'>;