TableCell

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={'셀 텍스트'}
/>

Last updated