UNPKG

@tapie-kr/inspire-react

Version:

React Component Collection for INSPIRE

25 lines (20 loc) 1.11 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 */ 'use strict'; Object.defineProperty(exports, '__esModule', { value: true }); var default_css = require('./styles/default.css.js'); var index = require('../../../_virtual/index.js'); var React = require('react'); var shared = require('./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,shared.typographyWeightClass[weight||shared.TypographyWeight.REGULAR],default_css.typography];return React.createElement(tag||defaultTag||shared.TypographyTag.P,{...restProps,className:index.default(classes),style:{color,whiteSpace:nowrap?"nowrap":undefined,...style}},children)} exports.default = TypographyBuilder;