UNPKG

wix-storybook-utils

Version:

Utilities for automated component documentation within Storybook

20 lines 785 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var tslib_1 = require("tslib"); var react_1 = tslib_1.__importDefault(require("react")); var Text_st_css_1 = require("./Text.st.css"); var Text = function (_a) { var size = _a.size, weight = _a.weight, secondary = _a.secondary, light = _a.light, children = _a.children, className = _a.className, as = _a.as; return react_1.default.createElement(as, { className: (0, Text_st_css_1.st)(Text_st_css_1.classes.root, { size: size, weight: weight, secondary: secondary, light: light }, className), children: children, }); }; Text.defaultProps = { as: 'p', size: 'medium', weight: 'thin', }; Text.displayName = 'Text'; exports.default = Text; //# sourceMappingURL=Text.js.map