carbon-components
Version:
Carbon Components is a component library for IBM Cloud
58 lines (54 loc) • 1.24 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 featureFlags = require('../../globals/js/feature-flags');
const { prefix } = require('../../globals/js/settings');
const { componentsX } = featureFlags;
module.exports = {
context: {
componentsX,
prefix,
},
variants: [
{
name: 'default',
label: 'Number Input',
notes: `
Number inputs are similar to text fields, but contain controls used to increase or decrease an incremental value.
The Number Input component can be passed a starting value, a min, a max, and the step.
`,
},
{
name: 'light',
label: 'Number Input (Light)',
context: {
light: true,
},
},
{
name: 'mobile',
label: 'Mobile Number Input',
meta: {
xVersionOnly: true,
},
context: {
mobile: true,
},
},
{
name: 'mobile-light',
label: 'Mobile Number Input (light)',
meta: {
xVersionOnly: true,
},
context: {
light: true,
mobile: true,
},
},
],
};