Licence
—
Version
0.2.0
Deps
0
Size
8 kB
Vulns
0
Weekly
0
@govuk-react/icon-crown
The GOV.UK crown and logotype as React components. They render the same SVG as govuk-frontend 6.6.0's logo, so they slot into the classes of govuk-frontend-react components, which ship no Crown copyright artwork themselves.
import { Crown, Logo } from '@govuk-react/icon-crown';
<Crown className="govuk-footer__crown" />
<Logo className="govuk-header__logotype" ariaLabelText="GOV.UK" />
Logorenders the Tudor crown and the GOV.UK logotype. PassuseLogotype={false}for the crown alone.CrownisLogowithout the logotype.ariaLabelTextgives the SVGrole="img", anaria-labeland a<title>. Without it the SVG isrole="presentation".
ESM only, React 19 or later.
Licence
Crown copyright. See LICENSE.txt.