feat(toggle): support small size, deprecate ToggleSmall

This commit is contained in:
Eric Liu 2020-11-19 15:20:01 -08:00
commit 1e3eef992c
12 changed files with 91 additions and 17 deletions

View file

@ -1,6 +1,12 @@
/// <reference types="svelte" />
export interface ToggleProps extends svelte.JSX.HTMLAttributes<HTMLElementTagNameMap["div"]> {
/**
* Specify the toggle size
* @default "default"
*/
size?: "default" | "sm";
/**
* Set to `true` to toggle the checkbox input
* @default false

View file

@ -1,6 +1,12 @@
/// <reference types="svelte" />
export interface ToggleSkeletonProps extends svelte.JSX.HTMLAttributes<HTMLElementTagNameMap["div"]> {
/**
* Specify the toggle size
* @default "default"
*/
size?: "default" | "sm";
/**
* Specify the label text
* @default ""