Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@telegraph/typography

Package Overview
Dependencies
Maintainers
0
Versions
28
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@telegraph/typography

Shared build utilities for Telegraph

  • 0.0.30
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
0
Created
Source

Telegraph by Knock

npm version

@telegraph/typography

Heading & Text components that powers typography in telegraph

Installation Instructions

npm install @telegraph/typography

Add stylesheet

Pick one:

Via CSS (preferred):

@import "@telegraph/typography"

Via Javascript:

import "@telegraph/typography/style.css"

Then, include className="tgph" on the farthest parent element wrapping the telegraph components

Usage

<Heading/>
import { Heading } from "@telegraph/typography"

...

<Heading>Heading</Heading>
Props
NameTypeDefaultOptions
asstringnull"h1" "h2" "h3" "h4" "h5" "h6"
sizestring"2""1" "2" "3" "4" "5" "6" "7" "8" "9"
colorstring"default""default" "gray" "red" "beige" "blue" "green" "yellow" "purple" "accent" "disabled" "white"
alignstringnull"left" "right" "center"
<Text/>
import { Text } from "@telegraph/typography"

...

<Text>Text</Text>
Props
NameTypeDefaultOptions
asstringnull"p" "span" "div" "label" "em" "strong" "b" "i" "pre" "code"
sizestring"2""1" "2" "3" "4" "5" "6" "7" "8" "9"
colorstring"default""default" "gray" "red" "beige" "blue" "green" "yellow" "purple" "accent" "disabled" "white"
alignstringnull"left" "right" "center"
weightstringregular"regular" "medium"

FAQs

Package last updated on 17 Sep 2024

Did you know?

Socket

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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc