We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 76a306f commit d46fbfaCopy full SHA for d46fbfa
src/table/Table/index.tsx
@@ -1,4 +1,5 @@
1
import * as React from 'react';
2
+import cs from 'clsx';
3
/** @jsxRuntime classic */
4
/** @jsx jsx */
5
import { css, jsx } from '@emotion/react';
@@ -58,6 +59,7 @@ const Table: React.FC<TableProps> = React.forwardRef(
58
59
select,
60
tree,
61
onInit = () => {},
62
+ className = 'table',
63
children,
64
...rest
65
}: TableProps,
@@ -82,12 +84,12 @@ const Table: React.FC<TableProps> = React.forwardRef(
82
84
83
85
return (
86
<div
- className="table"
87
+ role="grid"
88
+ className={cs(className)}
89
css={css`
90
${styles(layout, { isShiftDown })}
91
${theme?.Table}
92
`}
- role="grid"
93
ref={callbackRef}
94
{...rest}
95
>
0 commit comments