
Research
/Security News
9 Malicious NuGet Packages Deliver Time-Delayed Destructive Payloads
Socket researchers discovered nine malicious NuGet packages that use time-delayed payloads to crash applications and corrupt industrial control systems.
@slice-and-dice/govuk-react-heading
Advanced tools
Outputs a styled heading tag of provided level, rendering children as contents.
import Heading from '@govuk-react/heading';
Simple
<Heading>Heading text</Heading>
To pick different heading levels it is recommended to use the shortcut versions as that will pick the appropriate tag as well as set the appropriate corresponding font size.
Using shortcuts
import { H1, H2, H3, H4, H5, H6 } from "@slice-and-dice/govuk-react-heading";
<H1>h1</H1>
<H2>h2</H2>
<H3>h3</H3>
<H4>h4</H4>
<H5>h5</H5>
<H6>h6</H6>
Differing sizes
<H6 size={80}>
H6 with font size 80
</H6>
<Heading as="h2" size="SMALL">
Heading as h2 with SMALL size
</Heading>
<H3 size="LARGE">H3 with LARGE size</H3>
Props pass through
<Heading onClick={() => { console.log('clicked'); }}>Click me</Heading>
| Prop | Required | Default | Type | Description |
|---|---|---|---|---|
as | undefined | string | Semantic heading tag to use (e.g. 'h3') By default element used will be an 'h1' | |
level | undefined | number | Semantic heading level value between 1 and 6 (deprecated) | |
size | 'XLARGE' | enum(...Object.keys(HEADING_SIZES) | ...Object.keys(TYPOGRAPHY_SCALE)) | Visual size level, accepts:XLARGE, LARGE, MEDIUM, SMALL, XL, L, M, Sor a numeric size that fits in the GDS font scale list |
FAQs
Outputs a styled heading tag of provided level, rendering children as contents.
The npm package @slice-and-dice/govuk-react-heading receives a total of 0 weekly downloads. As such, @slice-and-dice/govuk-react-heading popularity was classified as not popular.
We found that @slice-and-dice/govuk-react-heading demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 8 open source maintainers collaborating on the project.
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.

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

Security News
Socket CTO Ahmad Nassri discusses why supply chain attacks now target developer machines and what AI means for the future of enterprise security.

Security News
Learn the essential steps every developer should take to stay secure on npm and reduce exposure to supply chain attacks.