UNPKG

carbon-components

Version:

Carbon Components is a component library for IBM Cloud

56 lines (51 loc) 923 B
/** * 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. */ 'use strict'; const featureFlags = require('../../globals/js/feature-flags'); const { prefix } = require('../../globals/js/settings'); const items = [ { id: 'downshift-1-item-0', label: 'Option 1', }, { id: 'downshift-1-item-1', label: 'Option 2', }, { id: 'downshift-1-item-2', label: 'Option 3', selected: true, }, { id: 'downshift-1-item-3', label: 'Option 4', }, ]; module.exports = { context: { featureFlags, prefix, }, variants: [ { name: 'default', label: 'Combo Box', context: { items, }, }, { name: 'disabled', label: 'Disabled', context: { disabled: true, items, }, }, ], };