Gradient Glow Button
A call-to-action button with a gradient fill and a soft coloured glow on hover.
6 个框架初级
A bordered button with a transparent fill that floods with colour on hover.
<button class="outline-btn" type="button">
Learn more
</button>| Prop | 类型 | 默认值 | 说明 |
|---|---|---|---|
children必填 | ReactNode | - | 在组件内部渲染的内容。 |
disabled | boolean | false | 禁止交互并将控件置灰。 |
onClick | () => void | - | 用户激活控件时触发。 |
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.