Gradient Glow Button
A call-to-action button with a gradient fill and a soft coloured glow on hover.
6 frameworksBeginner
A bordered button with a transparent fill that floods with colour on hover.
<button class="outline-btn" type="button">
Learn more
</button>| Prop | Type | Default | Description |
|---|---|---|---|
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 whole component is one hue used three ways - `border-blue-600`, `text-blue-700`, and the `hover:bg-blue-600` fill. Change all three together or the hover state will not match the border it grew out of. The dark variants are a shade lighter on purpose: a transparent button inherits the page background, so the resting label has to be re-tuned to hold 4.5:1 where a filled button would not.