Back to Component Browser

Button

Quartz

lib/quartz/components/Button/index.ts

Preview

Import

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

Props (9)

NameTypeRequiredDefaultDescription
childrenReactNoderequired—The 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.
startSlotReactNodeoptional—A slot to center align another piece of content before the button contents. Typically an SVG icon rendered as a react component.
endSlotReactNodeoptional—A slot to center align another piece of content after the button contents. Typically an SVG icon rendered as a react component.
loadingbooleanoptional—Whether a loading state is active. Also disables the button from receiving additional clicks....
noPaddingbooleanoptional—Removes padding.
refRef<HTMLButtonElement>optional—Allows getting a ref to the component instance....
keyKeyoptional——

Usage

Not used in any projects yet.