Gradient Glow Button
A call-to-action button with a gradient fill and a soft coloured glow on hover.
6 frameworksBeginner
A button that shows an inline spinner and blocks input while work is in flight.
<button class="load-btn" type="button" aria-busy="true" disabled>
<span class="load-btn__spinner" aria-hidden="true"></span>
Saving…
</button>| Prop | Type | Default | Description |
|---|---|---|---|
loading | boolean | false | Shows a spinner and blocks input while true. |
childrenrequired | ReactNode | - | Content rendered inside the component. |
disabled | boolean | false | Prevents interaction and dims the control. |
onClick | () => void | - | Fired when the user activates the control. |
The spinner is a bordered circle with one contrasting edge - change `border-t-white` to recolour it. Drive `loading` from your submit handler; the button disables itself so double-submits are impossible.