# @novem-ui/text

> Text components from novem-ui

Latest version **0.0.2-alpha.5** (published 2022-01-18) · ISC license · 0 weekly downloads

## Install

```sh
npm install @novem-ui/text
pnpm add @novem-ui/text
yarn add @novem-ui/text
bun add @novem-ui/text
```

## Health

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

Positive: has types; no vulnerabilities.

Warnings: low downloads; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.2-alpha.5 |
| Published | 2022-01-18 |
| First published | 2022-01-18 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 2 |
| Unpacked size | 16.2 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Leonel Vieyra |
| Maintainers | leonelv |

## Links

- npm: https://www.npmjs.com/package/@novem-ui/text
- Repository: https://github.com/jdrets/novem-ui
- Homepage: https://github.com/jdrets/novem-ui/tree/main/packages/text#readme
- Issues: https://github.com/jdrets/novem-ui/issues
- npm.io page: https://npm.io/package/@novem-ui/text

## Dependencies (2)

- [@novem-ui/base](https://npm.io/package/@novem-ui/base.md) ^0.0.2-alpha.5
- [@novem-ui/theme](https://npm.io/package/@novem-ui/theme.md) ^0.0.2-alpha.4

## Recent versions

- 0.0.2-alpha.5 (latest) — 2022-01-18
- 0.0.2-alpha.4 — 2022-01-18
- 0.0.2-alpha.3 — 2022-01-18
- 0.0.2-alpha.2 — 2022-01-18
- 0.0.2-alpha.1 — 2022-01-18
- 0.0.2-alpha.0 — 2022-01-18

## README

# @novem-ui/text

## Usage

### `<Paragraph />`

The component has the following props, plus [TypographyProps](../base/src/types.ts):

- `as` (Optional): It can be `p`, `strong`, `span`, `mark`, `ins`, `del`, `sup`, `small`, `i` or `b`, it's `p` by default.
- `size` (Optional): It can be `xs`, `sm`, `md` or `lg`.

```tsx
import { Paragraph, ThemeProvider } from `@novem-ui/core'
// or
import { Paragraph } from '@novem-ui/text'
import { ThemeProvider } from '@novem-ui/theme'

function App() {
  return (
    <ThemeProvider>
        <Paragraph as="span" size="sm" color="red.300" >
          Text content
        </Paragraph>
    </ThemeProvider>
  )
}
```

### `<Heading />`

The component has the following props, plus [TypographyProps](../base/src/types.ts):

- `as` (Optional): It can be any tag from `h1` to `h6`, it's `h1` by default.
- `size` (Optional): It can be `xs`, `sm`, `md`, `lg`, `xl` or `xxl`

```tsx
import { Heading, ThemeProvider } from `@novem-ui/core'
// or
import { Heading } from '@novem-ui/text'
import { ThemeProvider } from '@novem-ui/theme'

function App() {
  return (
    <ThemeProvider>
        <Heading as="h3" size="xl" color="red.300" >
          Heading content
        </Heading>
    </ThemeProvider>
  )
}
```

### `<Label />`

The component has the following props, plus [TypographyProps](../base/src/types.ts):

- `size` (Optional): It can be `xs`, `sm`, `md` or `lg`

```tsx
import { Heading, ThemeProvider } from `@novem-ui/core'
// or
import { Heading } from '@novem-ui/text'
import { ThemeProvider } from '@novem-ui/theme'

function App() {
  return (
    <ThemeProvider>
        <Label size="xl" color="red.300" for="id">
          Label content
        </Label>
    </ThemeProvider>
  )
}
```

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