Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

react table className

const columns = React.useMemo(
() => [
  {
    Header: 'Date',
    accessor: 'date',
    minWidth: 70,
    className: 'text-dark fw-bolder fs-6 min-w-70px', // pass className props here
    headerClassName: 'text-muted', // or another props like this one
  }]
  
<Table columns={columns} ... />
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #react #table #className
ADD COMMENT
Topic
Name
1+7 =