wix-storybook-utils
Version:
Utilities for automated component documentation within Storybook
17 lines • 599 B
JavaScript
import React from 'react';
import { classes, st } from './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.createElement(as, {
className: st(classes.root, { size: size, weight: weight, secondary: secondary, light: light }, className),
children: children,
});
};
Text.defaultProps = {
as: 'p',
size: 'medium',
weight: 'thin',
};
Text.displayName = 'Text';
export default Text;
//# sourceMappingURL=Text.js.map