StarForge
Display

Button

Sci-fi styled button with clip-path shapes, glow effects, shine sweep, scanner line, accent bars and corner decorations.

Note

All presented components are responsive and compatible with Tailwind CSS. Make sure Tailwind is configured in your project to use them.

Sci-Fi Button

A sci-fi styled button with configurable clip-path shapes (octagon, slash-tl, slash-tr), glow effects, shine sweep, scanner line, accent bars and corner decorations. Works as a <button>, internal <Link> or external <a>.

Props Reference

PropTypeDescriptionDefault
shape"octagon" | "slash-tl" | "slash-tr"Clip-path shape of the button"octagon"
cutstringSize of the corner cut (e.g. "9px")"9px"
cornerPosPartial<Record<CornerPos, boolean>>Which corners get a decorative triangleundefined
barsbooleanShow vertical accent bars on each sidefalse
scannerbooleanAnimate a horizontal scanner linefalse
shinebooleanShow a sweeping shine effecttrue
disabledbooleanDisable the buttonfalse
accentstringAccent color (CSS color value)"#00d4ff"
bgstringInner background color"#0d1117"
borderPxstringInset border thickness"1px"
borderHoverbooleanShow accent border on hoverfalse
classNamestringAdditional Tailwind classes""
onClick() => voidClick handler (button mode)undefined
hrefstringRender as link when providedundefined

On this page

Built with ❤️ using React, Next.js, TypeScript, and Tailwind CSS