ui
ui copied to clipboard
fix(ui): improve inconsistent element types provided to forwardRef
Fixes some inconsistent types provided to React.forwardRef in both alert and card components.
@JoschuaSchneider is attempting to deploy a commit to the shadcn-pro Team on Vercel.
A member of the Team first needs to authorize it.
@JoschuaSchneider What are your thoughts on replacing the headings in <Card />? See #351
@JoschuaSchneider What are your thoughts on replacing the headings in
<Card />? See #351
I agree with the points made and removing them would make the components more flexible.
I propose changing it to a paragraph per default and offer asChild to enable customisation depending on the context a Card is used in.
What do you think?
I propose changing it to a paragraph per default
Agreed.
and offer asChild to enable customisation depending on the context a Card is used in.
Genius.