CardViewSwitcher
This topic describes the anatomy, API reference, and variations of the CardViewSwitcher primitive component.
Anatomy
Anatomy
Using the component
Using the component
The following tabs describe use of the CardViewSwitcher primitive component.
API reference
API reference
CardViewSwitcher.Root
The CardViewSwitcher.Root component contains all the components of the card view switcher.
Children: CardViewSwitcher.Item
|
Name |
Description |
Default |
|---|---|---|
|
|
Event handler called when any item is clicked. | |
|
|
String. The controlled stateful value of the item that is pressed. list or grid |
grid |
CardViewSwitcher.Item
The CardViewSwitcher.Item component is an item in the group.
Parent: CardViewSwitcher.Root
|
Name |
Description |
Default |
|---|---|---|
|
|
String. Card value type. list or grid |
grid |
|
|
Content to be displayed. |


