List
Bulleted, numbered, plain or icon lists.
A static page with IzzyBlazor's script. No circuit.
A bulleted, numbered or icon list of ListItems, spaced with Gap. <List Icon="Lucide.Check" IconColor="Color.SuccessText"> makes a check list.
Usage
<List Icon="Lucide.Check" IconColor="Color.SuccessText">
<ListItem>Unlimited projects</ListItem>
<ListItem>Priority support</ListItem>
</List>
<List Ordered>
<ListItem>Install the package.</ListItem>
<ListItem>Add IzzyTheme to App.razor.</ListItem>
</List>Bulleted, numbered and plain
Use Ordered for a numbered list and Plain for one with no bullets or indent.
Preview
- Unlimited projects
- Custom domains
- Daily backups
- Add the package
- Put IzzyTheme in the head
- Map the endpoints
- Ada Lovelace
- Grace Hopper
- Alan Turing
Code
<Grid Columns="new() { Base = 1, Sm = 3 }" Gap="6" Grow>
<List>
<ListItem>Unlimited projects</ListItem>
<ListItem>Custom domains</ListItem>
<ListItem>Daily backups</ListItem>
</List>
<List Ordered>
<ListItem>Add the package</ListItem>
<ListItem>Put IzzyTheme in the head</ListItem>
<ListItem>Map the endpoints</ListItem>
</List>
<List Plain>
<ListItem>Ada Lovelace</ListItem>
<ListItem>Grace Hopper</ListItem>
<ListItem>Alan Turing</ListItem>
</List>
</Grid>Icon lists
Use Icon and IconColor to put an icon in place of each bullet; an item's own Icon wins.
Preview
Code
<List Icon="Lucide.Check" IconColor="Color.SuccessText" Gap="3" MaxWidth="24.Rem" Grow>
<ListItem>Unlimited projects</ListItem>
<ListItem>Priority support, answered within a day</ListItem>
<ListItem>Single sign-on with your identity provider</ListItem>
<ListItem Icon="Lucide.X" IconColor="Color.DangerText">Not included: on-premises hosting</ListItem>
</List>Parts
Written inside List. The API page lists their parameters.
ListItem: an item in a List: a li, with the list's icon or its own.
Mode support
| Feature | Off | Static | Live |
|---|---|---|---|
| Everything | Yes | Yes | Yes |
Off: JavaScript disabled. Static: a static SSR page with IzzyBlazor's script. Live: an interactive page (Server, WebAssembly or Auto).
Accessibility
- It renders a
ul, or anolwhenOrdered, ofliitems, so screen readers announce a list and its count. - Lists without bullets (
Plainor anIcon) keeprole="list", which Safari otherwise drops from a list with no markers. - Item icons are decorative and hidden from screen readers, so the item's text must carry the meaning, such as "Included" or "Not included".
Parameters
| Prop | Type | Default |
|---|---|---|
OrderedA numbered list (ol). | bool | false |
PlainNo bullets or numbers, and no indent. | bool | false |
IconAn icon in place of each bullet, such as Lucide.Check. | IconData? | |
IconColorThe icons' color. | Color? | computed |
GapSpace between items, on the spacing scale. | Responsive<int> | 2 |
AsThe element to render: div on a Box; components built on it set their own (List a ul, Section a section). | string | "ul" |
ChildContentThe content. | RenderFragment? |
Plus 25 surface props, 16 item props and 4 common props.
Full APISee also
- DescriptionList: terms and their details.
- Prose: styles plain HTML, such as rendered Markdown.
- Timeline: events on a rail, such as an order's history.