Socket
Book a DemoInstallSign in
Socket

react-echo

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-echo

Universal & Complete React text component

1.0.12
latest
npmnpm
Version published
Weekly downloads
4
-95%
Maintainers
1
Weekly downloads
 
Created
Source

<Text h1>React Echo</Text>

Rewriting the same typography component stops now

React Echo is a clean and delightful component for all things text!

npm install react-echo
yarn add react-echo
pnpm add react-echo

Usage

React Echo is un-opinionated it makes no assumptions about your typography styling; your app, your styles. Reach Echo is here to make your app better, not impose styles. 💪

import { Text, TextProvider } from "react-echo";
import { styles } from "./text.module.css";

function App() {
  return (
    <TextProvider classNames={styles}>
      <Text>Hello World!</Text>
    </TextProvider>
  );
}

text.module.css

.text, .text.h {
  margin: 0;
  font-family: arial;
}
.text.p {
}
.text.inline {
}
.text.h {
}
.text.h1 {
}
.text.h2 {
}
.text.h3 {
}
.text.h4 {
}
.text.h5 {
}
.text.h6 {
}
.text.a {
}
.text.bold {
}
.text.underline {
}
.text.strikeThrough {
}

Reference

<Text>Paragraph</Text>
<Text h1>Heading 1</Text>
<Text h2>Heading 2</Text>
<Text h3>Heading 3</Text>
<Text h4>Heading 4</Text>
<Text h5>Heading 5</Text>
<Text h6>Heading 6</Text>
<Text h1 as="h3">Heading 3 with heading 1 styles (SEO)</Text>
<Text>
  Place inline
  <Text inline>
    text
  </Text>
  inside and
  <Text inline italic>
    render
  </Text>
  as
  <Text inline bold color="red">
    span
  </Text>
</Text>
<Text family="helvetica" weight="bold">I'm bold and boring</Text>
<Text weight="bold">bold</Text>
<Text weight="bolder">bolder</Text>
<Text weight="normal">normal</Text>
<Text weight="lighter">lighter</Text>
<Text weight={300}>custom</Text>

Keywords

react

FAQs

Package last updated on 07 Aug 2023

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

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.