Back to Component Browser

Button

Quartz

lib/quartz/components/Button/index.ts

Preview

Import

import { Button } from '@/lib/quartz';

Props (9)

NameTypeRequiredDefaultDescription
childrenReactNoderequiredThe content of the `<Button>`. Typically text for what the button does.
variantenumoptionalsecondaryThe styling variant to apply. Changes only visual appearance.
sizeenumoptionalmediumThe size of the button. Changes only visual appearance.
startSlotReactNodeoptionalA slot to center align another piece of content before the button contents. Typically an SVG icon rendered as a react component.
endSlotReactNodeoptionalA slot to center align another piece of content after the button contents. Typically an SVG icon rendered as a react component.
loadingbooleanoptionalWhether a loading state is active. Also disables the button from receiving additional clicks....
noPaddingbooleanoptionalRemoves padding.
refRef<HTMLButtonElement>optionalAllows getting a ref to the component instance....
keyKeyoptional

Usage

Not used in any projects yet.