# Components Accordion: Dotted Border Accordion

An accordion framed by a dotted border around each panel. The playful dotted outline suits informal FAQs, help docs, and friendly onboarding tips.

- Page: https://www.shadcn-ui-blocks.com/blocks/components/accordions/dotted-border-accordion
- Collection: [Components](https://www.shadcn-ui-blocks.com/blocks/components), Free tier
- Group: [Accordions](https://www.shadcn-ui-blocks.com/blocks/components/accordions)
- Created: 2026-06-14
- Preview image: https://www.shadcn-ui-blocks.com/blocks/components/accordions/dotted-border-accordion.png

## Install

```bash
npx shadcn@latest add @shadcn-ui-blocks/components-accordions-dotted-border-accordion
```

A free block: it installs with no account or key. Or install it by URL: `npx shadcn@latest add "https://www.shadcn-ui-blocks.com/r/components-accordions-dotted-border-accordion.json"`.

## Depends on

- npm packages: lucide-react, radix-ui
- shadcn/ui components: accordion
- Installs to: `@/components/blocks/components/accordions/dotted-border-accordion`

## About this block

Dotted Border Accordion is a stacked single-open accordion. Each item
sits inside its own rounded panel outlined by a dashed border. When a
panel is closed the outline renders at reduced opacity, giving the list a
light, open feel. When a panel is open the dashed border steps up to full
opacity, clearly marking the active item without any background fill or
color change. A chevron icon on the right of each trigger rotates as the
panel opens and closes, and the answer content fades in beneath the
question with a smooth height transition.

The three demo items and all copy are independent. You can add or remove
panels freely, rewrite every question and answer, or drop the component
into a narrower column by adjusting the container width. One panel can be
open at a time; closing one automatically collapses any previously open
item.

## When to use

Reach for this block when you want an FAQ or help section that feels
approachable rather than rigid. Developer tools sites benefit from the
dotted outline because it reads as informal and precise at the same time,
fitting a tone that is friendly toward engineers without being loud. It
works well on a documentation page, a support landing, or an onboarding
checklist where readers expand only what they need and the rest of the
list stays quiet.

Compared to the card accordion the dotted variant uses no raised surface,
so it integrates into a content column without adding visual weight.
Compared to the minimal line accordion it still marks each item as a
distinct unit, which helps when questions need clear separation.

A natural flow around it on a Components page:

**Before**

- [Badges](https://www.shadcn-ui-blocks.com/blocks/components/badges) to introduce a section label or
  status above the FAQ list
- A short heading block to set the context for the questions that follow

**After**

- [Buttons](https://www.shadcn-ui-blocks.com/blocks/components/buttons) for a call to action once readers
  have scanned the answers
- [Alerts](https://www.shadcn-ui-blocks.com/blocks/components/alerts) to surface a notice or next step
  below the FAQ

## What you can customize

Each panel is self-contained, so you can tailor the content and count
without affecting the surrounding layout:

- **Question and answer copy.** Replace the placeholder text with your
  real FAQ items, docs entries, or onboarding tips to match your product
  voice.
- **Panel count.** Add as many items as your content needs or trim to a
  minimal two-item version for a compact help widget.
- **Default open state.** Pass a `defaultValue` to the accordion to land
  on the page with a specific panel already expanded.

> Tip: keep answers to two or three sentences each so the dotted outlines
> stay evenly sized and the list reads as a quick reference, not a wall
> of text.

## More in Components Accordions

- [Border Fade Accordion](https://www.shadcn-ui-blocks.com/blocks/components/accordions/border-fade-accordion)
- [Card Accordion](https://www.shadcn-ui-blocks.com/blocks/components/accordions/card-accordion)
- [Dash Line Accordion](https://www.shadcn-ui-blocks.com/blocks/components/accordions/dash-line-accordion)
- [Double Border Accordion](https://www.shadcn-ui-blocks.com/blocks/components/accordions/double-border-accordion)
- [Fade In Content Accordion](https://www.shadcn-ui-blocks.com/blocks/components/accordions/fade-in-content-accordion)
- [Floating Label Accordion](https://www.shadcn-ui-blocks.com/blocks/components/accordions/floating-label-accordion)
- [Glow Border Accordion](https://www.shadcn-ui-blocks.com/blocks/components/accordions/glow-border-accordion)
- [Highlight Active Accordion](https://www.shadcn-ui-blocks.com/blocks/components/accordions/highlight-active-accordion)
- [Minimal Line Accordion](https://www.shadcn-ui-blocks.com/blocks/components/accordions/minimal-line-accordion)
- [Nested Border Accordion](https://www.shadcn-ui-blocks.com/blocks/components/accordions/nested-border-accordion)
- [Numbered Accordion](https://www.shadcn-ui-blocks.com/blocks/components/accordions/numbered-accordion)
- [Shadow Reveal Accordion](https://www.shadcn-ui-blocks.com/blocks/components/accordions/shadow-reveal-accordion)
- [Stepped Accordion](https://www.shadcn-ui-blocks.com/blocks/components/accordions/stepped-accordion)
- [Thick Side Border Accordion](https://www.shadcn-ui-blocks.com/blocks/components/accordions/thick-side-border-accordion)
- [Underline Accordion](https://www.shadcn-ui-blocks.com/blocks/components/accordions/underline-accordion)
