UNPKG

@dnb/eufemia

Version:

DNB Eufemia Design System UI Library

59 lines (58 loc) 1.79 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.TypographyProperties = void 0; const TypographyProperties = exports.TypographyProperties = { element: { doc: 'Defines the Element Type, like `p`.', type: ['HTMLElement', 'string'], status: 'optional' }, size: { doc: 'Sets the font size, also sets the line-height if `lineHeight` prop is not set.', type: [`'x-small'`, `'small'`, `'basis'`, `'medium'`, `'large'`, `'x-large'`, `'xx-large'`], status: 'optional' }, lineHeight: { doc: 'Sets the line height, will use same value as `size` if not set.', type: [`'x-small'`, `'small'`, `'basis'`, `'medium'`, `'large'`, `'x-large'`, `'xx-large'`], status: 'optional' }, align: { doc: 'Sets the text alignment.', type: [`'center'`, `'left'`, `'right'`], status: 'optional' }, family: { doc: 'Sets the font family.', type: [`'basis'`, `'heading'`, `'monospace'`], status: 'optional' }, weight: { doc: 'Sets the font weight.', type: [`'regular'`, `'medium'`], status: 'optional' }, decoration: { doc: 'Sets the font decoration.', type: `'underline'`, status: 'optional' }, slant: { doc: 'Sets the font style.', type: `'italic'`, status: 'optional' }, proseMaxWidth: { doc: 'Sets the maximum width based on character count. This will limit the text width to approximately the specified number of characters. Use `true` for a default value of 60ch.', type: ['number', 'boolean'], status: 'optional' }, '[Space](/uilib/layout/space/properties)': { doc: 'Spacing properties like `top` or `bottom` are supported.', type: ['string', 'object'], status: 'optional' } }; //# sourceMappingURL=TypographyDocs.js.map