UNPKG

fui-fancyui

Version:
25 lines (24 loc) 552 B
import { jsx as o } from "react/jsx-runtime"; import n from "../../../atoms/Typography/Typography.js"; import { css as l } from "styled-components"; import { sizeSettings as a } from "../sizeSettings.js"; function c(e) { const { children: r, sizeC: t = "sm", externalStyle: i } = e; return /* @__PURE__ */ o( n, { variant: a[t].labelSize, lineHeight: 1, externalStyle: l` overflow: hidden; flex: 1; white-space: nowrap; ${i} `, children: r } ); } export { c as Label };