フォーム v1.0.0 無料

ボタン

複数のバリアント(primary、secondary、ghost)とサイズ(sm、md、lg)を備えた汎用ボタンコンポーネント。 アイコン、ローディング状態に対応し、リンクやフォームボタンとしてレンダリングできます。

プレビュー & コード

オプション

名前 デフォルト 説明
label * String 必須 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

変更履歴 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

この無料コンポーネントを気に入りましたか?一回のお支払いで全78コンポーネントを入手できます。

すべてのコンポーネントを取得