@dnb/eufemia
Version:
DNB Eufemia Design System UI Library
41 lines (40 loc) • 1.28 kB
JavaScript
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.LabelProperties = void 0;
var _StatDocsUtils = require("./StatDocsUtils.js");
const LabelProperties = exports.LabelProperties = {
children: {
doc: 'Label content.',
type: ['React.ReactNode'],
status: 'optional'
},
srOnly: {
doc: 'If `true`, hides the label visually while keeping it available for screen readers.',
type: ['boolean'],
defaultValue: 'false',
status: 'optional'
},
fontWeight: {
doc: 'Typography weight for the label.',
type: ['"regular"', '"medium"'],
defaultValue: 'regular',
status: 'optional'
},
fontSize: {
doc: 'Typography size for the label. Line-height is derived from the shared heading/text scale.',
type: ['"x-small"', '"small"', '"basis"', '"medium"', '"large"', '"x-large"', '"xx-large"'],
defaultValue: 'basis',
status: 'optional'
},
variant: {
doc: 'Label color style variant. `"default"` is deprecated — use `"plain"` instead.',
type: ['"plain"', '"subtle"'],
defaultValue: 'plain',
status: 'optional'
},
skeleton: _StatDocsUtils.skeletonProperty,
'[Space](/uilib/layout/space/properties)': _StatDocsUtils.spacingProperties
};
//# sourceMappingURL=LabelDocs.js.map