@tapie-kr/inspire-react
Version:
React Component Collection for INSPIRE
25 lines (22 loc) • 1.23 kB
JavaScript
/* 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 { jsx, jsxs } from 'react/jsx-runtime';
import { cell, cellContent } from '../styles/head.css.js';
import { Icon } from '../../../foundations/Icon/index.js';
import { GlyphIcon } from '../../../foundations/Icon/icon-set.js';
import { Typography } from '../../../foundations/Typography/index.js';
import { HStack } from '../../../miscellaneous/layout/HStack/index.js';
import { TypographyWeight } from '../../../foundations/Typography/shared.js';
import { StackJustify, StackAlign } from '../../../../lib/layout/types.js';
function TableHeadCell(props){return jsx("th",{className:cell,style:{width:props.width},children:jsxs(HStack,{fullWidth:true,className:cellContent,align:StackAlign.CENTER,justify:StackJustify.BETWEEN,children:[jsx(Typography.Petite,{weight:TypographyWeight.MEDIUM,children:props.children}),jsx(Icon,{name:props.isSortable&&GlyphIcon.EXPAND_ALL,size:14})]})})}
export { TableHeadCell };