
Security News
Meet Socket at Black Hat Europe and BSides London 2025
Socket is heading to London! Stop by our booth or schedule a meeting to see what we've been working on.
@slice-and-dice/govuk-react-button
Advanced tools
import Button from '@govuk-react/button';
Simple
<Button>My button text</Button>
With Icon
import { ButtonArrow } from '@govuk-react/icons';
<Button icon={<ButtonArrow />}>My button text</Button>
svgreadableColor call, but translate their black to govuk's black| Prop | Required | Default | Type | Description |
|---|---|---|---|---|
buttonColour | undefined | string | Override for default button colour | |
buttonHoverColour | undefined | string | Override for default button hover colour, which defaults to buttonColour darkened by 5% | |
buttonShadowColour | undefined | string | Override for default button shadow colour, which defaults to buttonColour darkened by 15% | |
buttonTextColour | undefined | string | Override for default button text colour, which defaults to govuk white | |
children | true | `````` | node | Button text |
disabled | false | bool | Renders a disabled button and removes pointer events if set to true | |
icon | undefined | node | Button icon | |
start | false | bool | Renders a large button if set to true |
FAQs
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Socket is heading to London! Stop by our booth or schedule a meeting to see what we've been working on.

Security News
OWASP’s 2025 Top 10 introduces Software Supply Chain Failures as a new category, reflecting rising concern over dependency and build system risks.

Research
/Security News
Socket researchers discovered nine malicious NuGet packages that use time-delayed payloads to crash applications and corrupt industrial control systems.