@novem-ui/text
TypeScript icon, indicating that this package has built-in type declarations

0.0.2-alpha.5 • Public • Published

@novem-ui/text

Usage

<Paragraph />

The component has the following props, plus TypographyProps:

  • 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.
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:

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

  • size (Optional): It can be xs, sm, md or lg
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>
  )
}

Readme

Keywords

none

Package Sidebar

Install

npm i @novem-ui/text

Weekly Downloads

0

Version

0.0.2-alpha.5

License

ISC

Unpacked Size

16.6 kB

Total Files

18

Last publish

Collaborators

  • leonelv