carbon-components
Version:
Carbon Components is a component library for IBM Cloud
87 lines (82 loc) • 1.41 kB
JavaScript
/**
* Copyright IBM Corp. 2016, 2018
*
* This source code is licensed under the Apache-2.0 license found in the
* LICENSE file in the root directory of this source tree.
*/
;
const { prefix } = require('../../globals/js/settings');
const featureFlags = require('../../globals/js/feature-flags');
const items = [
{
label: 'Option 1',
value: 'all',
},
{
label: 'Option 2',
value: 'cloudFoundry',
},
{
label: 'Option 3',
value: 'staging',
},
{
label: 'Option 4',
value: 'dea',
},
{
label: 'Option 5',
value: 'router',
},
];
module.exports = {
context: {
prefix,
featureFlags,
},
variants: [
{
name: 'default',
label: 'Dropdown',
notes: `
The Dropdown component is used for navigating or filtering existing content.
`,
context: {
items,
},
},
{
name: 'light',
label: 'Dropdown (Light)',
context: {
light: true,
items,
},
},
{
name: 'up',
label: 'Up',
context: {
up: true,
items,
},
},
{
name: 'up-light',
label: 'Up (Light)',
context: {
up: true,
light: true,
items,
},
},
{
name: 'inline',
label: 'Inline',
context: {
inline: true,
items,
},
},
],
};