UNPKG

@create-figma-plugin/ui

Version:

Production-grade Preact components that replicate the Figma UI design

12 lines 539 B
import { h } from 'preact'; import { createClassName } from '../../utilities/create-class-name.js'; import { createComponent } from '../../utilities/create-component.js'; import styles from './text.module.css'; export const Text = createComponent(function ({ align = 'left', children, numeric = false, ...rest }) { return (h("div", { ...rest, class: createClassName([ styles.text, styles[align], numeric === true ? styles.numeric : null ]) }, children)); }); //# sourceMappingURL=text.js.map