List-item commonly refers to a single entry within a list structure. Key points:
- Definition: An individual element in an ordered or unordered list.
- Contexts: UI components (menu items), HTML (the
- tag), data structures (array/list elements), documentation/bulleted lists.
- Properties: Often has content text, optional metadata (id, value), state flags (selected, active, disabled), and may include nested children.
- Behavior: Can be clickable/selectable, draggable (for reordering), expandable/collapsible if it contains sublists.
- Accessibility: Use proper semantic markup (e.g.,
- /
- with
Leave a Reply