
Security News
The Changelog Podcast: Practical Steps to Stay Safe on npm
Learn the essential steps every developer should take to stay secure on npm and reduce exposure to supply chain attacks.
@bdt-component-library/typography
Advanced tools
This is a component published as its own package from our component library monorepo: https://github.com/BenefitsDataTrust/ui-components. Setup instructions, as well as higher-level goals and concerns can be found from the main project README.
Handles display of text according to typography style guide conventions.
| prop | type | required | default | explanation | 
|---|---|---|---|---|
| display | enum("normal", "light", "white") | no | "normal" | Changes the foreground/background color mode | 
| children | React node | yes | n/a | The text to display | 
| className | string | no | n/a | Adds an optional classname to the component | 
| classOverrides | { normal: string, light: string, white: string } | no | {} | Allows specifying classes to override other specific classes in the component | 
| id | string | no | n/a | Adds an optional id to the component | 
| variant | enum("h1", "h2", "h3", "h4", "h5", "h6", "p") | no | "p" | "error" | 
| component | enum("h1", "h2", "h3", "h4", "h5", "h6", "p", "span") | no | variant prop | Sets the native element used in the markup | 
| noBottomMargin | boolean | no | false | Adds optional bottom margin | 
| body | enum("default", "small", "smallCaps") | no | "default" | Changes text secondary styles | 
FAQs
Typography component
We found that @bdt-component-library/typography demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 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.

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

Security News
Experts push back on new claims about AI-driven ransomware, warning that hype and sponsored research are distorting how the threat is understood.

Security News
Ruby's creator Matz assumes control of RubyGems and Bundler repositories while former maintainers agree to step back and transfer all rights to end the dispute.