# Components Accordion: Underline Accordion

An accordion where each question sits above a single underline. The clean text first look fits editorial FAQs and quiet, tidy help sections.

- Page: https://www.shadcn-ui-blocks.com/blocks/components/accordions/underline-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/underline-accordion.png

## Install

```bash
npx shadcn@latest add @shadcn-ui-blocks/components-accordions-underline-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-underline-accordion.json"`.

## Depends on

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

## About this block

Underline Accordion is a single-column stack of expandable items. Each
question sits as plain text above a bottom border, and when a reader hovers
or opens an item a thin two-pixel line animates outward from the left edge
beneath the question text. One item can be open at a time, and a chevron
rotates to signal the open state. The answer sits directly below its question
inside the same row, keeping the eye on track.

The three demo items and all their copy are yours to swap freely. You can add
or remove items without any layout changes, and the underline animation works
identically on every row. The centered narrow container is a sensible default
but the accordion itself will fill whatever column you drop it into.

## When to use

This block fits any FAQ or documentation section where a quiet, editorial
tone matters more than decoration. For a developer tools site it reads
naturally on a docs page, an API reference landing section, or a support
portal where a cluttered frame would compete with code samples. It is a
better pick than the
[Card Accordion](https://www.shadcn-ui-blocks.com/blocks/components/accordions/card-accordion) when you want
the content to feel lightweight and inline rather than visually boxed, and
better than the
[Highlight Active Accordion](https://www.shadcn-ui-blocks.com/blocks/components/accordions/highlight-active-accordion)
when background tints would clash with the surrounding page.

A natural flow around it on a Components page:

**Before**

- A short introductory heading block to set the topic before the questions
- [Tabs](https://www.shadcn-ui-blocks.com/blocks/components/tabs) to let readers filter by topic area before
  diving into expanded answers

**After**

- [Alerts](https://www.shadcn-ui-blocks.com/blocks/components/alerts) to surface a key notice or next step
  once the reader finishes scanning the FAQ
- A call to action row pointing to documentation or a contact form

## What you can customize

The block works for any short question and answer content where motion should
stay subtle. A few natural fits:

- **Integration FAQs.** List common questions about connecting your API or
  SDK so developers can scan and expand only what they need.
- **Pricing clarifications.** Answer plan limit and billing questions in a
  tidy stack that does not clutter the pricing section above it.
- **Release notes context.** Pair each accordion item with a version or
  feature name so readers can expand only the change that affects them.

> Tip: keep answers to two or three sentences so the expand animation feels
> snappy and readers are not surprised by a large content jump.

## 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)
- [Dotted Border Accordion](https://www.shadcn-ui-blocks.com/blocks/components/accordions/dotted-border-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)
