carbon-components
Version:
The Carbon Design System is IBM’s open-source design system for products and experiences.
51 lines (47 loc) • 1.06 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');
module.exports = {
context: {
prefix,
},
variants: [
{
name: 'default',
label: 'File uploader',
context: {
id: 'file-uploader',
},
},
{
name: 'example upload states',
label: 'File uploader with example upload states',
context: {
id: 'prepopulated-file-uploader',
exampleUploadStates: true,
},
},
{
name: 'legacy',
label: 'Legacy file uploader',
context: {
id: 'legacy-file-uploader',
legacy: true,
},
},
{
name: 'legacy with example upload states',
label: 'Legacy file uploader with example upload states',
context: {
id: 'legacy-file-uploader-states',
legacy: true,
exampleUploadStates: true,
},
},
],
};