react-component / react-component/table

Pass additional className to <table> element

Open
#766 1 comment 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
1.4k
Forks
618
Avg merge
10h 19m
Merged PRs (30d)
2

Description

Hi,

I would like to set bootstrap classnames ("table", "table-responsive", "table-stripped") to

element but no prop tableClassName found. I would like to send pull request but unfortunately its hard to orient yourself in the code for me.

Its possible to add tableClassName to props?

My idea of using:
<Table tableClassName="table table-striped" columns={columns} data={data} />

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

No file or test is named in the issue. Start by locating the Table component and its props, then trace how the table element is rendered. The work is done when the proposed tableClassName usage is accepted and the class names reach the table element, with coverage added or updated if an existing table test entry point is found.

Written by the indexing model from the issue text.

Assessment

Tech stack
react, typescript
Domain
frontend
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.