0.0.2-alpha.5 • Published 4 years ago
@novem-ui/text v0.0.2-alpha.5
@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,iorb, it'spby default.size(Optional): It can bexs,sm,mdorlg.
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 fromh1toh6, it'sh1by default.size(Optional): It can bexs,sm,md,lg,xlorxxl
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,mdorlg
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>
)
}0.0.2-alpha.5
4 years ago
0.0.2-alpha.4
4 years ago
0.0.2-alpha.3
4 years ago
0.0.2-alpha.2
4 years ago
0.0.2-alpha.1
4 years ago
0.0.2-alpha.0
4 years ago