BlockDex

Components

Registries

Free blocks

Method

BlockDex

Components

Registries

Free blocks

Method

Open API

BlockDex

Components

Registries

Free blocks

Method

Open API

Components/neobrutal-ui/button

Button

neobrutal-ui/button
FreeComponent

neobrutal-ui publishes no description for this item.

Live preview

live · rendered by the registry
Rendered by neobrutal-ui on their own page — this is the component running, not a screenshot of it.

Install it

npx shadcn@latest add https://neobrutal-ui.andongmin.com/r/button.json

Source

src/components/ui/button.tsxneobrutal-ui.andongmin.com/r/button.json
1"use client";
2
3import { Button as ButtonPrimitive } from "@base-ui/react/button";
4import { cva, type VariantProps } from "class-variance-authority";
5import * as React from "react";
6
7import { cn } from "@/lib/utils";
8
9const raisedPress =
10 "shadow-shadow hover:not-data-disabled:translate-x-pressX hover:not-data-disabled:translate-y-pressY hover:not-data-disabled:shadow-press focus-visible:not-data-disabled:translate-x-pressX focus-visible:not-data-disabled:translate-y-pressY focus-visible:not-data-disabled:shadow-press active:not-data-disabled:translate-x-boxShadowX active:not-data-disabled:translate-y-boxShadowY active:not-data-disabled:shadow-[0_0_0_0_var(--border)]";
11
12const buttonVariants = cva(
13 "inline-flex items-center justify-center whitespace-nowrap rounded-base text-sm font-base ring-offset-white transition-[translate,box-shadow,background-color,color] duration-[140ms] ease-[ease] motion-reduce:transition-none gap-2 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0 focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-black focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-disabled:pointer-events-none data-disabled:opacity-50",
14 {
15 variants: {
16 variant: {
17 default: `text-main-foreground bg-main border-2 border-border ${raisedPress}`,
18 outline: `bg-background text-foreground border-2 border-border ${raisedPress}`,
19 secondary: `bg-secondary-background text-foreground border-2 border-border ${raisedPress}`,
20 ghost:
21 "border-2 border-transparent bg-transparent text-foreground hover:border-border hover:bg-main hover:text-main-foreground",
22 destructive: `bg-destructive text-white border-2 border-border ${raisedPress}`,
23 link: "text-primary underline-offset-4 hover:underline",
24 noShadow: "text-main-foreground bg-main border-2 border-border",
25 neutral: `bg-secondary-background text-foreground border-2 border-border ${raisedPress}`,
26 reverse:
27 "text-main-foreground bg-main border-2 border-border hover:not-data-disabled:translate-x-reverseBoxShadowX hover:not-data-disabled:translate-y-reverseBoxShadowY hover:not-data-disabled:shadow-shadow active:not-data-disabled:translate-x-0 active:not-data-disabled:translate-y-0 active:not-data-disabled:shadow-[0_0_0_0_var(--border)]",
28 },
29 size: {
30 default: "h-10 px-4 py-2",
31 xs: "h-7 px-2 text-xs",
32 sm: "h-9 px-3",
33 lg: "h-11 px-8",
34// … truncated

What it pulls in

npm packages

  • @base-ui/react

Files it writes

  • src/components/ui/button.tsx

Facts

Registry
neobrutal-ui
Type
registry:ui
Access
Free
Files written
1
Licence
the repository states none
First indexed
2026-08-02
Last confirmed
2 days ago

Go to the source

Docs on neobrutal-ui neobrutal-ui.andongmin.com andongmin94/neobrutal-ui on GitHub Raw registry item This item as JSON

More from neobrutal-ui

All 100 items
Same registry, same kind — the ones you would have found next
ComponentRegistryKindAccessInstallsCommand
Accordionaccordionneobrutal-uiComponentsFree1 dep
Alertalertneobrutal-uiComponentsFreeno deps
Alert dialogalert-dialogneobrutal-uiComponentsFree1 dep
Avataravatarneobrutal-uiComponentsFree1 dep
Badgebadgeneobrutal-uiComponentsFreeno deps
Breadcrumbbreadcrumbneobrutal-uiComponentsFree1 dep
Calendarcalendarneobrutal-uiComponentsFree1 dep
Cardcardneobrutal-uiComponentsFreeno deps
BlockDex

Built by

Kynth Studio

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

BlockDex

BlockDex

Built by

Kynth Studio

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

BlockDex

BlockDex

Built by

Kynth Studio

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

BlockDex