UNPKG

svelte-ux

Version:

A large collection of Svelte components, actions, stores and utils to simplify creating highly interactive and visual applications. Built using Tailwind with extensibility and customization in mind.

17 lines (16 loc) 791 B
import type { FlyParams, SlideParams, BlurParams, FadeParams, ScaleParams } from 'svelte/transition'; import type { ThemeColors } from '@layerstack/tailwind'; export type MenuOption<T = any> = { label: string; value: T; icon?: string; group?: string; disabled?: boolean; } & Record<string, any>; export type LabelPlacement = 'inset' | 'float' | 'top' | 'left'; export declare const DEFAULT_LABEL_PLACEMENT: LabelPlacement; export type ButtonVariant = 'default' | 'outline' | 'fill' | 'fill-outline' | 'fill-light' | 'text' | 'none'; export type ButtonColor = ThemeColors | 'default'; export type ButtonSize = 'sm' | 'md' | 'lg'; export type ButtonRounded = boolean | 'full'; export type TransitionParams = BlurParams | FadeParams | FlyParams | SlideParams | ScaleParams;