Button

O botão único: seis variantes, quatro tamanhos de texto e quatro tamanhos de ícone quadrado, além de grupos de botões.

Disponível em
  • Angular: disponível
  • Vue: disponível
  • React: disponível
  • React Native: disponível

Uso

Importação

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

Referência da API

SoneButtonDirectiveDiretiva

Seletor
button[soneBtn], a[soneBtn], label[soneBtn]
Exportado como
soneBtn
Inputs
NomeTipo Padrão
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"

SoneButtonGroupDirectiveDiretiva

Seletor
[soneButtonGroup]
Inputs
NomeTipo Padrão
orientation"horizontal" | "vertical""horizontal"