Skip to main content
Version: 2022.4

Web Components - Button

Button component enables users to trigger actions, such as submitting a form or opening a dialog.

Set-up

import { provideDesignSystem, alphaButton } from '@genesislcap/alpha-design-system';

provideDesignSystem().register(alphaButton());

Usage

Live Editor
Result
Loading...

Appearance

Button supports several visual appearances (accent, lightweight, neutral, outline, stealth):

Live Editor
Result
Loading...

Disabled

Disabled buttons prevent user interaction; they cannot be pressed or focused.

Live Editor
Result
Loading...

Icons

For simplicity, this example shows SVG data embedded inline. Typically, you would import it from an external file.

Live Editor
Result
Loading...

Use cases

  • Creating simple button or link elements

Additional resources