Button

Use buttons for actions. Use a link-button only to navigate.

Variants
Show code
<DsmuButton>Save and continue</DsmuButton>
<DsmuButton variant="secondary">Cancel</DsmuButton>
<DsmuButton disabled>Disabled</DsmuButton>
Link styled as a button
Show code
<DsmuButton href="/start">Start now</DsmuButton>

Accessibility

Every button meets the 44px minimum target size and shares the system focus indicator. A link-button renders a real <a> so it behaves like a link for keyboard and screen-reader users.

Props

PropTypeDefaultDescription
variant'primary' | 'secondary''primary'Visual weight.
type'button' | 'submit' | 'reset''button'Native button type (ignored when href is set).
hrefstringRender as a link styled like a button.
disabledbooleanfalseDisable the button.