Socket
Socket
Sign inDemoInstall

@ndla/typography

Package Overview
Dependencies
66
Maintainers
8
Versions
27
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @ndla/typography

Typography components library for NDLA.


Version published
Weekly downloads
548
increased by56.13%
Maintainers
8
Created
Weekly downloads
 

Readme

Source

Typography

Typography components. We have two typography components: Heading and Text.

Installation

yarn add @ndla/typography
npm i --save @ndla/typography

Usage

Heading

import { Heading } from "@ndla/typography";

<Heading headingStyle="h1" element="h1" margin="normal">
  {title}
</Heading>;

Can be controlles using headingStyle, element, serif, margin props. The rendered element can be updated using the element prop.

Text

import { Text } from "@ndla/typography";

<Text textStyle="ingress" element="span" margin="normal" />;

Can be controlles using textStyle, element, margin props. The rendered element can be updated using the element prop.

Keywords

FAQs

Last updated on 23 Apr 2024

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc