mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-19 11:59:34 +00:00
feat(content-switcher): deprecate the light prop
- docs: remove the light variant example
This commit is contained in:
parent
ce53706e17
commit
52e7ecfe87
2 changed files with 4 additions and 8 deletions
|
@ -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>
|
||||||
|
|
|
@ -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;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue