Skip to content

Commit

Permalink
fix: card polimorphy tag alias
Browse files Browse the repository at this point in the history
  • Loading branch information
abelflopes committed Jul 3, 2024
1 parent 4a6d008 commit 38c5635
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/components/card/src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ interface CardProps<T extends HTMLTag = "div">
* @returns a React element
*/

const Card = ({
const Card = <T extends HTMLTag>({
as,
skin = "bordered",
interaction,
Expand All @@ -41,7 +41,7 @@ const Card = ({
children,
className,
...otherProps
}: Readonly<CardProps>): React.ReactElement => {
}: Readonly<CardProps<T>>): React.ReactElement => {
const [contextValue, setContextValue] = useState<CardContextValue>({
image: undefined,
});
Expand Down

0 comments on commit 38c5635

Please sign in to comment.