UNPKG

carbon-components

Version:

The Carbon Design System is IBM’s open-source design system for products and experiences.

49 lines (45 loc) 970 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 { prefix } = require('../../globals/js/settings'); module.exports = { context: { prefix, }, 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', }, }, ], };