List-Item
A list item is a single entry in a collection presented as a list. Lists organize related pieces of information so they’re easy to scan and consume. They appear throughout apps, websites, documents, and interfaces — from simple bullet points to complex interactive components.
Types of list items
- Plain text: Single-line entries used for short notes or bullet points.
- Multi-line: Entries that wrap onto several lines for longer content.
- Iconified: Includes an icon or avatar to provide context (e.g., user photo).
- Interactive: Clickable or tappable items that trigger navigation or actions.
- Selectable: Items that can be checked, toggled, or highlighted (e.g., in a to‑do list).
Anatomy of a good list item
- Primary label: The main piece of information (title or name).
- Secondary text: Supporting details (subtitle, timestamp, brief description).
- Visual affordance: Icon, avatar, thumbnail, or status indicator.
- Action controls: Buttons, menus, or checkboxes for inline actions.
- Spacing & alignment: Clear padding and consistent alignment for readability.
Design best practices
- Prioritize scannability: Keep primary labels short and prominent.
- Use hierarchy: Distinguish primary and secondary text with size, weight, or color.
- Provide clear affordances: Make interactive elements obviously tappable/clickable.
- Optimize for touch: Ensure minimum tappable area (~44–48 px).
- Handle overflow: Use truncation, wrapping, or expandable details for long content.
- Maintain consistency: Keep margins, icon sizes, and typography uniform across lists.
- Consider accessibility: Provide semantic list markup (ul/ol), use ARIA where needed, and ensure focus states and keyboard navigation.
Implementation examples
- In HTML/CSS: use
- /
- Common patterns
- Feed: Chronological list with timestamps and content previews.
- Settings: List with labels and trailing controls (toggles, chevrons).
- Menu: Compact clickable items for navigation.
- Search results: List of results with highlighted query matches.
Performance tips
- Virtualize long lists to render only visible items.
- Memoize item renderers to avoid unnecessary re-renders.
- Load images lazily and provide placeholders.
A well-designed list item balances clarity, brevity, and functionality — making information quick to scan and simple to act on.
- with
- Common patterns
Leave a Reply