List Item is a component used inside List. For concrete usage examples, please see the List component.
|The list item component’s label content. Use this to put content into description list’s dt element.
|The list item component’s value content. Use this to put content into description list’s dd element.
This section includes guidelines for designers and developers about the usage of this component in different contexts.
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
ddelements 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
ddelements are wrapped in a
duet-list-itemelement. This warning can however be ignored in testing, as the browsers ignore the wrappings and interpret this component a regular descprition list items.
Follow these practical tutorials to learn how to build simple page layouts using Duet’s CSS Framework, Web Components and other features:
Using CLI ToolsTutorials
Creating Custom PatternsTutorials
Server Side RenderingTutorials
Usage With Markdown
If you experience any issues while using a component, please head over to the Support page for more guidelines and help.