refactor(content-switcher): use class name directive

This commit is contained in:
Eric Liu 2020-12-05 15:15:12 -08:00
commit 3d5eed849c
5 changed files with 12 additions and 11 deletions

View file

@ -3,7 +3,7 @@
export interface SwitchProps extends svelte.JSX.HTMLAttributes<HTMLElementTagNameMap["button"]> {
/**
* Specify the switch text
* Alternatively, use the named slot "text" (e.g., <span slot="text">...</span>)
* Alternatively, use the "text" slot (e.g., <span slot="text">...</span>)
* @default "Provide text"
*/
text?: string;