Button

El único botón: seis variantes, cuatro tamaños de texto y cuatro tamaños de icono cuadrado, además de grupos de botones.

Disponible en
  • Angular: disponible
  • Vue: disponible
  • React: disponible
  • React Native: disponible

Uso

Importación

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

Referencia de la API

SoneButtonDirectiveDirectiva

Selector
button[soneBtn], a[soneBtn], label[soneBtn]
Exportar como
soneBtn
Inputs
NombreTipo Predeterminado
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"

SoneButtonGroupDirectiveDirectiva

Selector
[soneButtonGroup]
Inputs
NombreTipo Predeterminado
orientation"horizontal" | "vertical""horizontal"