Vinyl UI

Button

Raised retro button with a hard shadow that collapses on press.

Installation

npx shadcn@latest add @vinyl/button

Usage

import { Button } from '@/components/ui/button';

<Button>Play</Button>
<Button variant="outline">Eject</Button>
<Button glitch>Glitch on hover</Button>
<Button asChild><a href="/tracks">Tracks</a></Button>

API

PropValuesDefault
variantdefault secondary destructive outline ghost linkdefault
sizedefault sm lg icondefault
glitchboolean: RGB split on hover/focus (web only)false
asChildRender as the child element (web only)false

The press effect uses motion-reduce:transform-none on the web.

On this page