# @crave/farmblocks-text

> Farmblocks text

Latest version **3.6.11** (published 2022-01-05) · MIT license · 0 weekly downloads

## Install

```sh
npm install @crave/farmblocks-text
pnpm add @crave/farmblocks-text
yarn add @crave/farmblocks-text
bun add @crave/farmblocks-text
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 3.6.11 |
| Published | 2022-01-05 |
| First published | 2017-11-10 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 18.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 20 |
| Author | Crave Food Systems and AUTHORS |
| Maintainers | viniciusmartin, luis.nascimento, seocam, vnakamura, alcferreira, imwra |
| Keywords | farmblocks, text, title, caption, paragraph, react, component |

## Links

- npm: https://www.npmjs.com/package/@crave/farmblocks-text
- Repository: https://github.com/CraveFood/farmblocks
- Homepage: https://github.com/CraveFood/farmblocks#readme
- Issues: https://github.com/CraveFood/farmblocks/issues
- npm.io page: https://npm.io/package/@crave/farmblocks-text

## Dependencies (1)

- [@crave/farmblocks-theme](https://npm.io/package/@crave/farmblocks-theme.md) ^1.12.4

## Alternatives

- [mobx-react](https://npm.io/package/mobx-react.md) — 2.8M weekly downloads
- [rc-tree](https://npm.io/package/rc-tree.md) — 2.6M weekly downloads
- [@react-oauth/google](https://npm.io/package/@react-oauth/google.md) — 1.3M weekly downloads
- [@wagmi/connectors](https://npm.io/package/@wagmi/connectors.md) — 877.0K weekly downloads
- [vee-validate](https://npm.io/package/vee-validate.md) — 836.4K weekly downloads

## Recent versions

- 3.6.11 (latest) — 2022-01-05
- 3.6.10-alpha-adjust-xsmall-font-size-value-6142.1.0 (canary) — 2021-08-11
- 3.6.10 — 2021-08-11
- 3.6.10-alpha-lerna-force-publish-6137.1.0 — 2021-07-26
- 3.6.7 — 2021-07-23
- 3.6.6 — 2021-07-07
- 3.6.6-alpha-add-font-size-6125.1.10 — 2021-07-07
- 3.6.5 — 2021-04-19
- 3.6.5-alpha-table-redesign-manual-1.11 — 2021-01-21
- 3.6.5-alpha-icon-publish-5935.1.5 — 2020-10-29
- 3.6.4 — 2020-10-21
- 3.6.4-alpha-esmodules-5925.1.15 — 2020-10-21
- 3.6.4-alpha-esmodules-5921.1.16 — 2020-10-15
- 3.6.4-alpha-esmodules-5917.1.15 — 2020-10-14
- 3.6.3 — 2020-09-04
- … 1106 more at https://npm.io/package/@crave/farmblocks-text/versions

## README

![logo-farmblocks](https://user-images.githubusercontent.com/7760/31051341-4d280118-a63c-11e7-9e8f-3b375ca8f9a0.png)

# Farmblocks-Text

React components for displaying text. [See Storybook](https://cravefood.github.io/farmblocks/?selectedKind=Text%2FDefault)

## Usage

You can combine the text props to create a full customizable text page.

```jsx
import React from "react";
import { render } from "react-dom";

import Text from "@crave/farmblocks-text";
import { fontSizes, fontTypes } from "@crave/farmblocks-theme";

const App = () => (
  <div>
    <Text fontWeight="title" size={fontSizes.HUGE} type={fontTypes.FEATURED}>
      Content title
    </Text>

    <Text size={fontSizes.LARGE} type={fontTypes.NEUTRAL} lineHeight={2.5}>
      This is a normal text that can be used as a subtitle
    </Text>

    <Text
      paragraph
      size={fontSizes.MEDIUM}
      type={fontTypes.NORMAL}
      align="justify"
    >
      Lorem Ipsum is simply dummy text of the printing and typesetting industry.
      Lorem Ipsum has been the industry's standard dummy text ever since the
      1500s, when an unknown printer took a galley of type and scrambled it to
      make a type specimen book. It has survived not only five centuries.
    </Text>
  </div>
);

render(<App />, document.getElementById("root"));
```

This code will render this:

![image](https://user-images.githubusercontent.com/17936244/32954636-d433fee0-cb9a-11e7-804d-423c376bac98.png)

## API

See it in the [source](https://github.com/CraveFood/farmblocks/blob/master/packages/text/src/components/Text.js#L13:#L18)

Also see the predefined [font sizes](https://github.com/CraveFood/farmblocks/blob/master/packages/theme/src/fontSizes.js) and [types](https://github.com/CraveFood/farmblocks/blob/master/packages/theme/src/fontTypes.js) available on [farmblocks-theme](https://github.com/CraveFood/farmblocks/tree/master/packages/theme) package

## License

MIT

---
_Source: https://npm.io/package/@crave/farmblocks-text · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
