Button

Jeden przycisk: sześć wariantów, cztery rozmiary tekstowe i cztery kwadratowe rozmiary ikon, a do tego grupy przycisków.

Dostępny w
  • Angular: dostępny
  • Vue: dostępny
  • React: dostępny
  • React Native: dostępny

Użycie

Import

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

Dokumentacja API

SoneButtonDirectiveDyrektywa

Selektor
button[soneBtn], a[soneBtn], label[soneBtn]
Eksport jako
soneBtn
Wejścia
NazwaTyp Domyślnie
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"

SoneButtonGroupDirectiveDyrektywa

Selektor
[soneButtonGroup]
Wejścia
NazwaTyp Domyślnie
orientation"horizontal" | "vertical""horizontal"