Typography
Lists
Bulleted and numbered lists, description lists for key/value data, and quotations.
import { List, OrderedList, DescriptionList, Blockquote } from '@reactloom/ui';Examples
Bulleted and numbered
- Single sign-on (SAML, OIDC)
- Audit logs for 400 days
- Data residency in the EU
- Create an API key
- Store it as a CI secret
- Run the first sync
import { List, OrderedList, SimpleGrid } from '@reactloom/ui';
export default function Example() {
return (
<SimpleGrid columns={{ base: 1, sm: 2 }} gap="6">
<List>
<li>Single sign-on (SAML, OIDC)</li>
<li>Audit logs for 400 days</li>
<li>Data residency in the EU</li>
</List>
<OrderedList spacing="md">
<li>Create an API key</li>
<li>Store it as a CI secret</li>
<li>Run the first sync</li>
</OrderedList>
</SimpleGrid>
);
}Description list
layout="inline" puts terms and details side by side from 640 px.
- Customer
- Acme Corporation
- Plan
- Enterprise · annual
- Renewal
- Account ID
acct_9f2c41
import { Code, DescriptionList } from '@reactloom/ui';
export default function Example() {
return (
<DescriptionList layout="inline" style={{ width: '100%', maxWidth: 520 }}>
<DescriptionList.Item term="Customer">Acme Corporation</DescriptionList.Item>
<DescriptionList.Item term="Plan">Enterprise · annual</DescriptionList.Item>
<DescriptionList.Item term="Renewal">
<time dateTime="2027-03-01">1 March 2027</time>
</DescriptionList.Item>
<DescriptionList.Item term="Account ID">
<Code>acct_9f2c41</Code>
</DescriptionList.Item>
</DescriptionList>
);
}Blockquote
Make the right thing the easy thing.
import { Blockquote } from '@reactloom/ui';
export default function Example() {
return (
<Blockquote attribution="— Platform team, Q3 retrospective">
Make the right thing the easy thing.
</Blockquote>
);
}API reference
List props
| Prop | Type | Default |
|---|---|---|
ordered | boolean | false |
marker | 'default' | 'none' | 'default' |
spacing | 'none' | 'sm' | 'md' | 'lg' | 'sm' |
DescriptionList props
| Prop | Type | Default |
|---|---|---|
layout | 'stacked' | 'inline' | 'stacked' |
DescriptionList.Item termrequired | ReactNode | — |
Blockquote props
| Prop | Type | Default |
|---|---|---|
attributionRendered in a figcaption. | ReactNode | — |
citeSource URL. | string | — |
Customization
Extracted from the component’s source on every build, so it matches the code. How the layers fit together is explained in Customization.
List
State attributes
Target these in your CSS to style states without depending on class names.
| Attribute | Values |
|---|---|
[data-marker] | default · none |
[data-spacing] | none · sm · md · lg |
Theme tokens it reads
--pl-color-fg-muted
DescriptionList
State attributes
Target these in your CSS to style states without depending on class names.
| Attribute | Values |
|---|---|
[data-layout] | stacked · inline |
Blockquote
Theme tokens it reads
--pl-color-border-strong --pl-color-fg-default --pl-color-fg-muted --pl-font-size-lg --pl-font-size-sm
Accessibility
- marker="none" adds role="list" because Safari drops list semantics when markers are removed.
Usage guidelines
Do
- Use DescriptionList for metadata panels.
Don’t
- Don’t fake lists with line breaks.