Moduli v1.0.0 Gratuito

Pulsante

Un componente pulsante versatile con varianti multiple (primario, secondario, trasparente) e dimensioni (sm, md, lg). Supporta icone, stati di caricamento e può essere renderizzato come link o pulsante di form.

Anteprima e Codice

Opzioni

Nome Tipo Predefinito Descrizione
label * String obbligatorio The text displayed on the button
variant Symbol :primary Visual style: :primary, :secondary, or :ghost
size Symbol :md Button size: :sm, :md, or :lg
href String nil If provided, renders as a link instead of button
method Symbol nil HTTP method for link (e.g., :delete, :post)
disabled Boolean false Whether the button is disabled
type String "button" Button type attribute: 'button', 'submit', or 'reset'
class String "" Additional CSS classes to apply

Registro delle modifiche v1.0.0

- Initial release with primary, secondary, and ghost variants
- Three size options: sm, md (default), lg
- Icon support with leading/trailing positions
- Link and button rendering modes

Ti piace questo componente gratuito? Ottieni tutti i 78 componenti con un pagamento unico.

Ottieni Tutti i Componenti