# List Slide (/docs/components/list-slide)

An ordered or unordered list slide with optional fragment animations.

> For the complete documentation index, see [llms.txt](/llms.txt). Markdown variants are available by appending `.md` to any URL or sending an `Accept: text/markdown` header. An agent skill is available at [/.well-known/agent-skills/site-skill.md](/.well-known/agent-skills/site-skill.md).



<ComponentPreview name="list-slide-demo" />

### Installation [#installation]

<CodeTabs>
  <TabsList>
    <TabsTrigger value="cli">
      Command
    </TabsTrigger>

    <TabsTrigger value="manual">
      Manual
    </TabsTrigger>
  </TabsList>

  <TabsContent value="cli">
    ```bash
    npx shadcn@latest add @slidecn/list-slide
    ```
  </TabsContent>

  <TabsContent value="manual">
    <Steps>
      <Step>
        Install the following dependencies:
      </Step>

      ```bash
      npm install @revealjs/react
      ```

      <Step>
        Copy the component source into your project.
      </Step>

      <ComponentSource src="registry/slidecn/ui/list-slide.tsx" title="components/slidecn/list-slide.tsx" />

      <Step>
        Update the import paths to match your project setup.
      </Step>
    </Steps>
  </TabsContent>
</CodeTabs>

## Usage [#usage]

```tsx
import ListSlide from "@/components/slides/list-slide";

function MyPresentation() {
  return (
    <Deck>
      <ListSlide
        title="Next Steps"
        ordered
        animation="fade-up"
        items={[
          { text: "Review proposal", subtext: "Due Friday" },
          { text: "Schedule kickoff", subtext: "Next Monday" },
        ]}
      />
    </Deck>
  );
}
```

## API Reference [#api-reference]

### ListSlide [#listslide]

| Prop        | Type                | Default  | Description                |
| ----------- | ------------------- | -------- | -------------------------- |
| `title`     | `string`            | -        | Slide heading              |
| `items`     | `ListItem[]`        | required | List items                 |
| `ordered`   | `boolean`           | `false`  | Use ordered list           |
| `animated`  | `boolean`           | `false`  | Enable fragment animations |
| `animation` | `FragmentAnimation` | -        | Fragment animation type    |
| `notes`     | `string`            | -        | Speaker notes              |

### ListItem [#listitem]

| Field     | Type     | Description    |
| --------- | -------- | -------------- |
| `text`    | `string` | Main text      |
| `subtext` | `string` | Secondary text |
