@novem-ui/text
v0.0.2-alpha.5
Published
Text components from novem-ui
Downloads
7
Readme
@novem-ui/text
Usage
<Paragraph />
The component has the following props, plus TypographyProps:
as
(Optional): It can bep
,strong
,span
,mark
,ins
,del
,sup
,small
,i
orb
, it'sp
by default.size
(Optional): It can bexs
,sm
,md
orlg
.
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 fromh1
toh6
, it'sh1
by default.size
(Optional): It can bexs
,sm
,md
,lg
,xl
orxxl
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 bexs
,sm
,md
orlg
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>
)
}