Gradient Glow Button
A call-to-action button with a gradient fill and a soft coloured glow on hover.
6 個のフレームワーク初級
A borderless button that stays invisible until hover - for the quiet half of a button pair.
<button class="ghost-btn" type="button">
Cancel
</button>| Prop | 型 | デフォルト | 説明 |
|---|---|---|---|
children必須 | ReactNode | - | コンポーネントの内部にレンダリングされるコンテンツ。 |
disabled | boolean | false | 操作を無効にし、コントロールを淡色表示にします。 |
onClick | () => void | - | ユーザーがコントロールを実行したときに発火します。 |
Pair it with a filled button as the Cancel to its Save; the point is that it recedes. The transparent border at rest is not decoration - it reserves the 1px so the button does not jump when it sits beside a bordered sibling. Deepen `hover:bg-gray-100` to `gray-200` if your surface is already grey.