ant-design/components/_util/aria-data-attrs.ts
vagusX 2aca1fff22
feat: make statistic component support html role and data-* and aria-* attributes (#47149)
* feat: make statistic component support html attributes

* fix: types

* chore: improve

* feat: use pickAttrs for data-* and aria-* and role
2024-01-26 15:27:02 +08:00

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'>;