carbon-components
Version:
Carbon Components is a component library for IBM Cloud
42 lines (39 loc) • 770 B
JavaScript
const items = [
{
label: 'First section',
target: '.demo--panel--opt-1',
selected: true,
},
{
label: 'Second section',
target: '.demo--panel--opt-2',
},
{
label: 'Third section',
target: '.demo--panel--opt-3',
},
];
module.exports = {
variants: [
{
name: 'default',
label: 'Content Switcher',
notes: `
The Content Switcher component manipulates the content shown following an exclusive or “either/or” pattern.
Create Switch components for each section in the content switcher.
`,
context: {
items,
},
},
{
name: 'with-icon',
label: 'With icon',
context: {
hasIcon: true,
items,
},
},
],
};
;