File tree Expand file tree Collapse file tree 3 files changed +7
-6
lines changed Expand file tree Collapse file tree 3 files changed +7
-6
lines changed Original file line number Diff line number Diff line change 1
- import React , { forwardRef , HTMLAttributes } from 'react'
1
+ import React , { forwardRef , TableHTMLAttributes } from 'react'
2
2
import PropTypes from 'prop-types'
3
3
import classNames from 'classnames'
4
4
5
5
import { Colors , colorPropType } from '../Types'
6
6
7
- export interface CTableProps extends HTMLAttributes < HTMLTableElement > {
7
+ export interface CTableProps extends TableHTMLAttributes < HTMLTableElement > {
8
8
/**
9
9
* Set the vertical aligment. [docs]
10
10
*/
Original file line number Diff line number Diff line change 1
- import React , { forwardRef , HTMLAttributes } from 'react'
1
+ import React , { forwardRef , TdHTMLAttributes } from 'react'
2
2
import PropTypes from 'prop-types'
3
3
import classNames from 'classnames'
4
4
5
5
import { Colors , colorPropType } from '../Types'
6
6
7
- export interface CTableDataCellProps extends HTMLAttributes < HTMLTableDataCellElement > {
7
+ export interface CTableDataCellProps
8
+ extends Omit < TdHTMLAttributes < HTMLTableDataCellElement > , 'align' > {
8
9
/**
9
10
* Highlight a table row or cell. [docs]
10
11
*/
Original file line number Diff line number Diff line change 1
- import React , { forwardRef , HTMLAttributes } from 'react'
1
+ import React , { forwardRef , ThHTMLAttributes } from 'react'
2
2
import PropTypes from 'prop-types'
3
3
import classNames from 'classnames'
4
4
5
5
import { Colors , colorPropType } from '../Types'
6
6
7
- export interface CTableHeaderCellProps extends HTMLAttributes < HTMLTableHeaderCellElement > {
7
+ export interface CTableHeaderCellProps extends ThHTMLAttributes < HTMLTableHeaderCellElement > {
8
8
/**
9
9
* A string of all className you want applied to the component. [docs]
10
10
*/
You can’t perform that action at this time.
0 commit comments