Formulários v1.0.0 Grátis

Botão

Um componente de botão versátil com múltiplas variantes (primário, secundário, fantasma) e tamanhos (sm, md, lg). Suporta ícones, estados de carregamento e pode ser renderizado como link ou botão de formulário.

Pré-visualização e Código

Opções

Nome Tipo Padrão Descrição
label * String obrigatório 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

Changelog 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

Gostando deste componente grátis? Obtenha todos os 78 componentes com um pagamento único.

Obter Todos os Componentes