Skip to Content
Skip to content

Button

Neumorphic button with the stock shadcn button API. Raised by default, sinks on press. Hover keeps its depth.

Installation

bunx --bun shadcn@latest add https://neu.beyondtheinnovation.com/r/neu-button.json

Usage

import { Button } from "@/components/ui/neu/button"
<Button variant="outline">Button</Button>

Surface

surface sets the face. The default, auto, makes the raised variants (default, secondary, destructive) convex so the theme's --neu-face curves them, and leaves ghost, outline and link flat. Pass flat, convex, concave or realism to pin one.

<Button surface="flat">Flat</Button>

As Child

Use asChild to give another element, such as a link, the button's styles.

<Button asChild>
  <a href="/login">Login</a>
</Button>

On this page