feat(content-switcher): deprecate the light prop

- docs: remove the light variant example
This commit is contained in:
Eric Y Liu 2021-04-01 14:39:08 -07:00
commit 52e7ecfe87
2 changed files with 4 additions and 8 deletions

View file

@ -28,13 +28,6 @@ components: ["ContentSwitcher", "Switch"]
<FileSource src="/framed/ContentSwitcher/ContentSwitcherReactive" /> <FileSource src="/framed/ContentSwitcher/ContentSwitcherReactive" />
### Light variant
<ContentSwitcher light>
<Switch text="Latest news" />
<Switch text="Trending" />
</ContentSwitcher>
### Custom switch slot ### Custom switch slot
<ContentSwitcher> <ContentSwitcher>

View file

@ -6,7 +6,10 @@
/** Set the selected index of the switch item */ /** Set the selected index of the switch item */
export let selectedIndex = 0; export let selectedIndex = 0;
/** Set to `true` to enable the light variant */ /**
* Set to `true` to enable the light variant
* @deprecated
*/
export let light = false; export let light = false;
/** /**