Marigold
Getting StartedFoundationsComponentsPatternsRecipesReleases
Discover new Tutorials!

Components

Overview

Application

MarigoldProvider
updated
RouterProvider
updated

Layout

Aside
Aspect
Breakout
Center
Columns
Container
Grid
Inline
Inset
Scrollable
Split
Stack
updated
Tiles

Form

Autocomplete
Button
updated
Calendar
Checkbox
ComboBox
DateField
DatePicker
Form
Multiselect
new
NumberField
Radio
SearchField
Select
Slider
Switch
TextArea
TextField
TimeField
new

Collection

SelectList
updated
Table
updated
Tag

Navigation

Accordion
Breadcrumbs
beta
Pagination
Tabs

Overlay

ContextualHelp
new
Dialog
Menu
Toast
beta
Tooltip
updated

Content

Badge
Body
Card
Divider
updated
Footer
Header
Headline
updated
Icon
updated
Image
Link
updated
List
updated
SectionMessage
SVG
updated
Text
updated
VisuallyHidden
updated
XLoader

Formatters

DateFormat
NumericFormat

Hooks and Utils

cn
cva
extendTheme
useAsyncListData
useListData
useResponsiveValue
useTheme

List

Used to display an unordered or ordered list.

The <List> component is a content component used to display a list of items. It is versatile and can be used for both unordered and ordered lists, making it suitable for various content presentation needs.

The list is divided into two parts: <List> and <List.Item>. By default, the application displays an unordered (ul) list. However, this list can also be displayed as an ordered (ol) list.

Anatomy

The <List> component consists of the following parts:

Anatomy of a list

Apperance

The appearance of a component can be customized using the variant and size props. These props adjust the visual style and dimensions of the component, available values are based on the active theme.

Variant
Size
The selected theme does not has any options for "variant" and "size".
  • The Screaming Pixels
  • Echo Mirage
  • Orchestra Obscura
  • DrumForge
  • Velvet Static
PropertyTypeDescription
variant-The available variants of this component.
size-The available sizes of this component.

Usage

The List component is used to display a group of related items in a consistent and accessible way. It supports both unordered (bulleted) and ordered (numbered) formats and can be customized through nesting. List components are ideal for organizing content such as tasks, steps, features, or grouped data while maintaining design consistency and readability across the application.

Do
Use two or more items in a list

Use two or more items in a list to provide meaningful content.

Don't
Dont use less than two items in a list

Avoid using a list with only one item, as it does not provide meaningful grouping or context.

Unordered list

Per default, the <List> component renders an unordered list. Unordered lists are best used for grouping items that do not require a specific order, such as features, options, or general information. They help users quickly scan and understand related items without implying a sequence.

Ordered list

Ordered lists are best used when the sequence of items matters, such as for step-by-step instructions, processes, timelines, or ranked priorities. They help users follow a specific flow and improve accessibility by clearly communicating order to screen readers. Use them for actions that must be completed in order or when numbering adds meaning, avoid them when the item order is irrelevant.

You can use the as prop to change the list type from unordered to ordered.

Preview
Code
  1. Log in to your account.
  2. Navigate to the "My Tickets" section.
  3. Select the event youโ€™ve purchased.
  4. Click on "Download Ticket".
  5. Show the ticket at the venue entrance.

Nested Unordered List

Nested lists allow you to represent hierarchical relationships or group related items under a common parent. Each level of nesting is typically indented to visually communicate its position in the structure. This helps users understand which items are primary and which are subordinate.

Preview
Code

Upcoming Concerts

  • The Screaming Pixels โ€“ "Neon Nights Tour"
    • ๐Ÿ“ Hamburg โ€“ Neon Dome โ€“ July 22, 2025
    • ๐Ÿ“ Berlin โ€“ Electric Arena โ€“ July 25, 2025
    • ๐Ÿ“ Stuttgart โ€“ Soundhall โ€“ July 28, 2025
  • Orchestra Obscura โ€“ "Moonlight Symphonies"
    • ๐Ÿ“ Leipzig โ€“ Royal Hall โ€“ August 18, 2025
    • ๐Ÿ“ Dresden โ€“ Opera House โ€“ August 20, 2025
  • Velvet Static โ€“ "Jazz Revival Sessions"
    • ๐Ÿ“ Munich โ€“ Blue Note Club โ€“ September 9, 2025
    • ๐Ÿ“ Cologne โ€“ Smooth Vibes Bar โ€“ September 11, 2025
    • ๐Ÿ“ Frankfurt โ€“ Lounge 88 โ€“ September 13, 2025

Props

Did you know? You can explore, test, and customize props live in Marigold's storybook. Watch the effects they have in real-time!
View List stories

List

as?
"ul" | "ol";
Displaying a unordered or ordered list for showing Information.
Defaults to:
"ul"
children?
ReactNode;
The children of the component.

List.Item

children?
ReactNode;
Children of the component.

Alternative components

  • Stack: Lists should be used for content and not for layout purposes. If you need accessible lists for layout, consider using the <Stack> component with asList property instead.

Last update: a month ago
Build with ๐Ÿฅต, ๐Ÿงก and
v14.1.1