Skip to content

Commit

Permalink
Fix #6614: Chart update TypeScript to inherit DIV (#6618)
Browse files Browse the repository at this point in the history
  • Loading branch information
melloware authored May 13, 2024
1 parent dfb35f8 commit 82fd8de
Showing 1 changed file with 1 addition and 13 deletions.
14 changes: 1 addition & 13 deletions components/lib/chart/chart.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,11 +45,7 @@ export interface ChartPassThroughOptions {
* Defines valid properties in Chart component.
* @group Properties
*/
export interface ChartProps {
/**
* Unique identifier of the element.
*/
id?: string | undefined;
export interface ChartProps extends Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, 'ref' | 'content' | 'pt'> {
/**
* Type of the chart.
*/
Expand All @@ -74,14 +70,6 @@ export interface ChartProps {
* Height of the chart in non-responsive mode.
*/
height?: string | undefined;
/**
* Inline style of the element.
*/
style?: React.CSSProperties | undefined;
/**
* Style class of the element.
*/
className?: string | undefined;
/**
* ARIA label for the chart canvas. Defaults to options.plugins.title.text if available.
* @default options.plugins.title.text
Expand Down

0 comments on commit 82fd8de

Please sign in to comment.