nocdn/ui

COMPONENTS

Cornered Button

This is a button, inspired by @aliszu, with a border and darker corners. Customiseable with props, adheres to shadcn/ui styling with accessibility in mind, with button semantics and keyboard navigation.

Preview

INSTALLATION:

bunx --bun shadcn@latest add https://ui.bartoszbak.org/r/cornered-button.json

USAGE:

PROPS:

PropTypeDefault
asChildbooleanfalse
size"sm" | "md" | "lg""md"
variant"default" | "outline" | "ghost" | "destructive""default"
corners"on" | "off""on"
borderWidthnumber1
cornerSizenumber8
cornerColorstringhsl(var(--border))
type"button" | "submit" | "reset""button"
classNamestring-
styleReact.CSSProperties-
childrenReact.ReactNode-