Velocity X Components

Core UI

Button Set

One button primitive covering primary/secondary/ghost/destructive variants, three sizes, a loading spinner state, and an icon-only mode.

Free MIT licensed. Install it with the CLI — no account, no key.
bash
$ velocityx add button-set

Built for astro.

Full docs for Button Set →

astro v1.0.0
Button Set

Props

NameTypeRequiredDefaultDescription
variant'primary' | 'secondary' | 'ghost' | 'destructive'No'primary'
size'sm' | 'md' | 'lg'No'md'
hrefstringNo
type'button' | 'submit' | 'reset'No'button'
loadingbooleanNofalse
disabledbooleanNofalse
iconbooleanNofalse
aria-labelstringNo
classstringNo''

File this creates

The CLI writes this path into your project, relative to its root — nothing else moves.

text
components/velocity/button-set/ButtonSet.astro

Using the Button Set component

Install it with velocityx add button-set. The CLI writes the source straight into your project — no runtime dependency, no registry lock-in, and it themes itself from the same primary-*/accent-* scale as the rest of the library.

More from Core UI.