Button

Der eine Button: sechs Varianten, vier Textgrößen und vier quadratische Icon-Größen, dazu Button-Gruppen.

Verfügbar für
  • Angular: verfügbar
  • Vue: verfügbar
  • React: verfügbar
  • React Native: verfügbar

Verwendung

Import

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

API-Referenz

SoneButtonDirectiveDirektive

Selektor
button[soneBtn], a[soneBtn], label[soneBtn]
Export als
soneBtn
Inputs
NameTyp Standard
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"

SoneButtonGroupDirectiveDirektive

Selektor
[soneButtonGroup]
Inputs
NameTyp Standard
orientation"horizontal" | "vertical""horizontal"