wix-storybook-utils
Version:
Utilities for automated component documentation within Storybook
33 lines • 1.82 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.default = {
description: 'Text is a general typography component used to construct any text content.',
do: [
'Use it to display text paragraphs formed from a single or multiple sentences.',
'Use it to display form element values and labels.',
],
dont: ['Don’t use it to highlight status, use <Badge/> instead.'],
featureExamples: [
{
title: 'Size',
description: "Control the size of the text with `size` prop. It supports 3 sizes:<br/>\n  - `medium` (default) - use it in all common cases of running text.<br/>\n  - `small` - use it for field labels and secondary content.<br/>\n  - `tiny` - use it for short messages of minor importance.",
example: '_size',
},
{
title: 'Weight',
description: "Control the weight of the text with `weight` prop. It supports 3 weights:<br/>\n  - `bold` - use it to emphasise running text.<br/>\n  - `normal` - use it for form field values and button labels.<br/>\n  - `thin` (default) - use it for all major paragraphs.",
example: '_weight',
},
{
title: 'Light',
description: "Invert text color so it can be used on a dark background with `light` prop. It affects standard and disabled skins only.",
example: '_light',
},
{
title: 'Secondary',
description: "Emphasise content hierarchy by setting running text priority to `secondary`. \n It applies lower contrast font color for standard skin text only.",
example: '_secondary',
},
],
};
//# sourceMappingURL=Text.content.js.map