Examples

Bulleted and numbered

Preview
  • Single sign-on (SAML, OIDC)
  • Audit logs for 400 days
  • Data residency in the EU
  1. Create an API key
  2. Store it as a CI secret
  3. Run the first sync
Example.tsx
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.

Preview
Customer
Acme Corporation
Plan
Enterprise · annual
Renewal
Account ID
acct_9f2c41
Example.tsx
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

Preview
Make the right thing the easy thing.
— Platform team, Q3 retrospective
Example.tsx
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

List props
PropTypeDefault
ordered
booleanfalse
marker
'default' | 'none''default'
spacing
'none' | 'sm' | 'md' | 'lg''sm'

DescriptionList props

DescriptionList props
PropTypeDefault
layout
'stacked' | 'inline''stacked'
DescriptionList.Item termrequired
ReactNode—

Blockquote props

Blockquote props
PropTypeDefault
attribution
Rendered in a figcaption.
ReactNode—
cite
Source 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.

AttributeValues
[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.

AttributeValues
[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.