# Components Button: Extra Small Buttons

Compact, low height buttons with tight padding and small type. Ideal for dense toolbars, table rows, and inline controls where space is limited.

- Page: https://www.shadcn-ui-blocks.com/blocks/components/buttons/extra-small-buttons
- Collection: [Components](https://www.shadcn-ui-blocks.com/blocks/components), Free tier
- Group: [Buttons](https://www.shadcn-ui-blocks.com/blocks/components/buttons)
- Created: 2026-06-14
- Preview image: https://www.shadcn-ui-blocks.com/blocks/components/buttons/extra-small-buttons.png

## Install

```bash
npx shadcn@latest add @shadcn-ui-blocks/components-buttons-extra-small-buttons
```

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-buttons-extra-small-buttons.json"`.

## Depends on

- npm packages: class-variance-authority, radix-ui
- shadcn/ui components: button
- Installs to: `@/components/blocks/components/buttons/extra-small-buttons`

## About this block

Extra Small Buttons shows five compact button variants arranged in a single
centered, wrapping row: Default, Secondary, Destructive, Outline, and Ghost.
Each button carries tight horizontal padding and extra small type, keeping the
overall height low so the buttons sit comfortably in dense layouts without
demanding vertical space.

All five variants are independent of one another. You can keep only the ones
your interface needs, relabel them to match your action vocabulary, or reorder
them. Because they are the standard button variants sized down rather than a
custom component, they inherit any global button styling already in your
project.

## When to use

Reach for this block on screens where actions compete with data for space. In
a real estate marketplace, for example, a property listing table might need
Save, Compare, and Contact buttons beside each row without pushing rows apart.
The compact size also suits filter toolbars, admin panels, and inline controls
inside cards or data grids where a full-height button would feel visually
dominant.

When you need a single prominent call to action rather than many small ones,
the [Extra Large Buttons](https://www.shadcn-ui-blocks.com/blocks/components/buttons/extra-large-buttons)
block is the better fit.

A natural flow around it on a Components page:

**Before**

- [Badges](https://www.shadcn-ui-blocks.com/blocks/components/badges) to label status or category inline
  before the actions appear
- A short data table or card grid that establishes the dense context the
  buttons will live in

**After**

- [Pagination](https://www.shadcn-ui-blocks.com/blocks/components/pagination) to continue the compact,
  utility-focused row of controls
- [Alerts](https://www.shadcn-ui-blocks.com/blocks/components/alerts) to confirm the result of a destructive
  or secondary action

## What you can customize

Five ready-to-use variants cover the most common action types in a tight
footprint. A few ways to put them to work:

- **Inline row actions.** Place Default and Destructive side by side in a
  table row so users can act on a record without leaving the list view.
- **Toolbar controls.** Stack Ghost and Outline variants inside a filter or
  sort toolbar where the buttons should recede until needed.
- **Status-driven states.** Swap the Destructive variant in or out based on
  record state so the danger action only appears when it is relevant.

> Tip: pair the Ghost variant with an icon and no label when horizontal space
> is critically tight; the small text size keeps icon-only buttons legible.

## More in Components Buttons

- [Border Animation Buttons](https://www.shadcn-ui-blocks.com/blocks/components/buttons/border-animation-buttons)
- [Cut Corners Buttons](https://www.shadcn-ui-blocks.com/blocks/components/buttons/cut-corners-buttons)
- [Extra Large Buttons](https://www.shadcn-ui-blocks.com/blocks/components/buttons/extra-large-buttons)
- [Grow Buttons](https://www.shadcn-ui-blocks.com/blocks/components/buttons/grow-buttons)
- [Interactive Buttons](https://www.shadcn-ui-blocks.com/blocks/components/buttons/interactive-buttons)
- [Liquid Buttons](https://www.shadcn-ui-blocks.com/blocks/components/buttons/liquid-buttons)
- [Morphing Buttons](https://www.shadcn-ui-blocks.com/blocks/components/buttons/morphing-buttons)
- [Pixel Buttons](https://www.shadcn-ui-blocks.com/blocks/components/buttons/pixel-buttons)
- [Pulse Buttons](https://www.shadcn-ui-blocks.com/blocks/components/buttons/pulse-buttons)
- [Rotate Buttons](https://www.shadcn-ui-blocks.com/blocks/components/buttons/rotate-buttons)
- [Shadow Buttons](https://www.shadcn-ui-blocks.com/blocks/components/buttons/shadow-buttons)
- [Skew Buttons](https://www.shadcn-ui-blocks.com/blocks/components/buttons/skew-buttons)
- [Slide Buttons](https://www.shadcn-ui-blocks.com/blocks/components/buttons/slide-buttons)
- [Social Buttons](https://www.shadcn-ui-blocks.com/blocks/components/buttons/social-buttons)
- [Squeeze Buttons](https://www.shadcn-ui-blocks.com/blocks/components/buttons/squeeze-buttons)
- [Underline Buttons](https://www.shadcn-ui-blocks.com/blocks/components/buttons/underline-buttons)
