List Item Ready
List Item is a component used inside List. For concrete usage examples, please see the List component.
Slots #
Slot | Description |
---|---|
"label" | The list item component’s label content. Use this to put content into description list’s dt element. |
"value" | The list item component’s value content. Use this to put content into description list’s dd element. |
Usage #
This section includes guidelines for designers and developers about the usage of this component in different contexts.
When to use #
- For use inside list component to generate a list item.
When not to use #
- Outside of list component.
Accessibility #
This component has been validated to meet the WCAG 2.1 AA accessibility guidelines. You can find additional information regarding accessibility of this component below.
- List item is outputs
dt
anddd
elements which have a semantic meaning in HTML. For this reason list items should never be used outside of list component. - Please note that some validation tools (e.g. Axe) will throw a warning for this component as we use Shadow DOM and the
dt
anddd
elements are wrapped in aduet-list-item
element. This warning can however be ignored in testing, as the browsers ignore the wrappings and interpret this component a regular descprition list items.
Integration
For integration, event and theming guidelines, please see Using Components. This documentation explains how to implement and use Duet’s components across different technologies like Angular, React or Vanilla JavaScript.
Tutorials
Follow these practical tutorials to learn how to build simple page layouts using Duet’s CSS Framework, Web Components and other features:
Building Layouts
TutorialsUsing CLI Tools
TutorialsCreating Custom Patterns
TutorialsServer Side Rendering
TutorialsSharing Prototypes
TutorialsUsage With Markdown
Troubleshooting
If you experience any issues while using a component, please head over to the Support page for more guidelines and help.