Compact Button

A small square button for a single icon, such as close, more, copy or expand. Sizes run from 24 to 32px.

FreeReact and Vue

Add a row of 4 ghost Orvain Compact Buttons with square corners: close, more, copy and expand.

Orvain MCPIncluded with the library

When to use#

  • For dismiss and overflow controls on cards, toasts and modals.
  • For inline utilities: copy, collapse, drag handle.

Anatomy#

1Container

Square, fully rounded or 6px radius, ghost or stroked.

2Icon

16 to 20px, centred.

States#

Default

Ghost or stroked.

Hover

Grey wash.

Focus

Ring.

Disabled

Muted.

Source#

The Compact Button ships in the free packages, @orvain/react and @orvain/vue, and in the Figma library with every variant and state shown above. The code on this page is the code you install.

Install the packages