@novem-ui/layout
v0.0.2-alpha.6
Published
layout components from novem-ui
Downloads
5
Readme
@novem-ui/layout
Usage
<Box />
The component props are composed by BorderProps & BackgroundProps & LayoutProps
& SpacingProps & ShadowProps
You can use any color of the palette in the color props by doing ..
The color can be any from the theme, and the valid weights are 50 | 100 | 200 | 300 | 400 | 500 | 600 | 700 | 800 | 900
import { Box, ThemeProvider } from '@novem-ui/core'
// or
import { Box } from '@novem-ui/layout'
import { ThemeProvider } from '@novem-ui/theme'
function App() {
return (
<ThemeProvider>
<Box backgroundColor="red.300" />
</ThemeProvider>
)
}
<Flex />
It's the same as Box but includes FlexProps
import { Flex, ThemeProvider } from '@novem-ui/core'
// or
import { Flex } from '@novem-ui/layout'
import { ThemeProvider } from '@novem-ui/theme'
function App() {
return (
<ThemeProvider>
<Flex align="center" justify="left" />
</ThemeProvider>
)
}
<Container />
Provides a set of breakpoints, similar to the ones in other libs like tailwind or bootstrap.
It's the same as Box but includes FlexProps
and the following props:
fluid
(Optional): A boolean to set the container to fluid.
import { Container, ThemeProvider } from '@novem-ui/core'
// or
import { Container } from '@novem-ui/layout'
import { ThemeProvider } from '@novem-ui/theme'
function App() {
return (
<ThemeProvider>
<Container fluid display="flex" align="center" justify="left" />
</ThemeProvider>
)
}