Skip to content

Commit

Permalink
fix: accordion types error
Browse files Browse the repository at this point in the history
  • Loading branch information
Virtute90 authored Mar 21, 2024
1 parent 2acd92f commit 4e854e7
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions src/Accordion/Accordion.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React, { ElementType, FC } from 'react';
import React, { ElementType, FC, HTMLAttributes } from 'react';
import classNames from 'classnames';

export interface AccordionProps {
export interface AccordionProps extends HTMLAttributes<HTMLElement> {
/** Utilizzarlo in caso di utilizzo di componenti personalizzati */
tag?: ElementType;
/** Classi aggiuntive da usare per il componente Badge */
Expand Down
4 changes: 2 additions & 2 deletions src/Accordion/AccordionHeader.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React, { FC, ReactNode, ElementType } from 'react';
import classNames from 'classnames';
import React, { ElementType, FC, HTMLAttributes, ReactNode } from 'react';

export interface AccordionHeaderProps {
export interface AccordionHeaderProps extends HTMLAttributes<HTMLElement> {
/** Utilizzarlo in caso di utilizzo di componenti personalizzati */
tag?: ElementType;
/** Classi aggiuntive da usare per il componente AccordionHeader */
Expand Down
4 changes: 2 additions & 2 deletions src/Accordion/AccordionItem.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React, { ElementType, FC } from 'react';
import classNames from 'classnames';
import React, { ElementType, FC, HTMLAttributes } from 'react';

export interface AccordionItemProps {
export interface AccordionItemProps extends HTMLAttributes<HTMLElement> {
/** Utilizzarlo in caso di utilizzo di componenti personalizzati */
tag?: ElementType;
/** Classi aggiuntive da usare per il componente */
Expand Down

0 comments on commit 4e854e7

Please sign in to comment.