Button

The one button: six variants, four text sizes and four square icon sizes, plus button groups.

Available in
  • Angular: available
  • Vue: available
  • React: available
  • React Native: available

Usage

Import

ts
import {
  SoneButtonDirective,
  SoneButtonGroupDirective,
} from "@surface-one/angular/button";

API reference

SoneButtonDirectiveDirective

Selector
button[soneBtn], a[soneBtn], label[soneBtn]
Export as
soneBtn
Inputs
NameType Default
variant

`accent`: filled with the accent (the primary call to action where `default` is ink). `soft`: a translucent grey fill (a quiet icon button). A toggle button with `aria-pressed="true"` gets the pressed fill in `ghost`, `outline` (keeping its border) and `soft`.

ButtonVariant"default"
sizeButtonSize"default"

SoneButtonGroupDirectiveDirective

Selector
[soneButtonGroup]
Inputs
NameType Default
orientation"horizontal" | "vertical""horizontal"