nextjs-framework
  • nextjs-sj-prime-base
  • Getting Started
    • Quickstart
    • Project Structure
    • Code Convention
  • 신규 프로젝트 생성 가이드
  • 라이브러리 개발 및 배포
  • # 고고컴퍼니 어드민 개발 서버 배포
  • Port 설정 방법
  • 에러 해결 방법
  • StoryBook 설명
  • COMPONENTS/UI
    • Tooltip
    • CompactIconButton
    • IconButton
    • FormAsset
    • InputField
    • Dropzone
    • Select
    • DataTable
    • TableHead
    • TableHeadDropdownMenu
    • TableCell
    • TableCellSelect
    • Tag
    • Tabs
    • Chip
    • Command
    • FilterSelect
    • FilterMultiSelect
    • FilterDate
    • DatePicker
    • Toast
  • Timer
  • Components/layout
    • page-header
    • info-card
    • search-filter
    • table-header
    • form
  • Custom Hook
    • use-form
  • use-form-file
  • use-timer
  • Util
    • validation
    • middleware.ts
  • Components/미사용
    • input-box
    • single-select
    • multi-select
    • range-date-picker
    • radio-button-group
    • checkbox-group
    • list-table
    • pagination
    • toggle
Powered by GitBook
On this page
  • Props
  • Usage
  1. COMPONENTS/UI

TableCell

PreviousTableHeadDropdownMenuNextTableCellSelect

Last updated 1 month ago

Props

Prop
Type
Default
Description

type

'checkbox' | 'title' | 'text' | 'tag' | 'button' | 'iconButton' | 'singleSelect' | 'custom'

-

타입

text

string

-

셀 텍스트

borderColor

string

-

type이 tag일 경우 tag의 border color

bgColor

string

-

type이 tag일 경우 tag의 background color

textColor

string

-

type이 tag일 경우 tag의 text color

icon

React.ReactNode

-

type이 iconButton일 경우 icon 컴포넌트

onClick

function

-

type이 button 또는 iconButton일 경우 버튼 클릭 이벤트 핸들러

children

React.ReactNode

-

커스텀 헤더 컴포넌트 (variant가 dropdown일 경우)

row

Row<TData>

-

ColumnDef의 cell props (type이 checkbox일 경우)

Usage

<TableCell
  type={'text'}
  text={'셀 텍스트'}
/>