UNPKG

carbon-components

Version:

Carbon Components is a component library for IBM Cloud

51 lines (47 loc) 1.05 kB
/** * 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 { prefix } = require('../../globals/js/settings'); const { componentsX } = require('../../globals/js/feature-flags'); module.exports = { context: { prefix, componentsX, }, variants: [ { name: 'default', label: 'Slider', notes: ` A slider enables the user to specify a numeric value which must be no less than a given value, and no more than another given value. `, context: { value: 25, inputId: 'slider-input-box', }, }, { name: 'light', label: 'Light', context: { light: true, value: 75, inputId: 'slider-input-box-light', }, }, { name: 'disabled', label: 'Disabled', context: { disabled: true, value: 50, inputId: 'slider-input-box', }, }, ], };