UNPKG

@kadconsulting/dry

Version:
8 lines 841 B
import { jsx as _jsx } from "react/jsx-runtime"; import './TextSm.scss'; import '../Typography.scss'; import { forwardRef } from 'react'; import classnames from 'classnames'; const TextSm = forwardRef(({ id, children, className, verticalRhythm, textAlign = 'left', weight = 'regular', fontStyle = 'normal', textDecoration = 'none', color = 'fontColorTextSm', ...props }, ref) => (_jsx("p", { id: id, ref: ref, className: classnames(className, 'dry-textSm', 'dry-typography', `dry-textSm--color-${color}`, `dry-typography--weight-${weight}`, `dry-typography--font-style-${fontStyle}`, `dry-typography--text-align-${textAlign}`, `dry-typography--text-decoration-${textDecoration}`, { 'dry-typography--no-vertical-rhythm': verticalRhythm === false }), ...props, children: children }))); export default TextSm; //# sourceMappingURL=TextSm.js.map