Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(component): Add
imgAlt
attribute to Card
s
Allows `Card`s to pass `imgAlt` to provide `alt` text to the underlying `<img/>`, when an `imgSrc` has also been provided. Now, by default, `Card`s with an image will have `alt=""`, which browsers interpret appropriately as [decorative images](https://www.w3.org/WAI/tutorials/images/decorative/). To add `alt` text to your `Card` with an image: ```js <Card imgAlt="Meaningful alt text for an image that is not purely decorative" imgSrc="https://flowbite.com/docs/images/people/profile-picture-5.jpg" > .. </Card> ```
- Loading branch information