UNPKG

@tapie-kr/inspire-react

Version:

React Component Collection for INSPIRE

21 lines (18 loc) 1.03 kB
/* eslint-disable */ /* * INSPIRE : Creative Kit * React Component Collection for INSPIRE * * This file is generated automatically. Do not modify it manually * Generated at : 2025. 3. 4. 오후 6:18:13 * @tapie-kr/inspire-react version: 0.2.15 * * (c) 2025 TAPIE. All rights reserved. * MIT License */ import { typography } from './styles/default.css.js'; import cn from '../../../_virtual/index.js'; import { createElement } from 'react'; import { typographyWeightClass, TypographyWeight, TypographyTag } from './shared.js'; function TypographyBuilder(props){const{tag:defaultTag,className:defaultClassName,props:baseProps}=props;const{tag,className,nowrap,weight,color,style,children,...restProps}=baseProps;const classes=[defaultClassName,className,typographyWeightClass[weight||TypographyWeight.REGULAR],typography];return createElement(tag||defaultTag||TypographyTag.P,{...restProps,className:cn(classes),style:{color,whiteSpace:nowrap?"nowrap":undefined,...style}},children)} export { TypographyBuilder as default };