Homefoundations
Common Properties
Learn about certain common properties components have.
Changing HTML Element
Many components accept an as
property that can be used to change the
underlying HTML element that is rendered for the component.
For example, the following snippet renders an unordered list.
- Apple
- Mango
- Avocado
Adding Data Attributes
Often you will need to add one or more data-*
attributes to your components.
Often as a hook for tests to assert. Most components provide a data
attribute
that accepts an object.
- Item 1
- Item 2
- Item 3