mirror of
https://github.com/ant-design/ant-design.git
synced 2024-12-22 22:48:29 +08:00
2aca1fff22
* feat: make statistic component support html attributes * fix: types * chore: improve * feat: use pickAttrs for data-* and aria-* and role
6 lines
192 B
TypeScript
6 lines
192 B
TypeScript
import type * as React from 'react';
|
|
|
|
export type HTMLAriaDataAttributes = React.AriaAttributes & {
|
|
[key: `data-${string}`]: unknown;
|
|
} & Pick<React.HTMLAttributes<HTMLDivElement>, 'role'>;
|