@nbsdev/naini-react
v1.43.1
Published
NBS Naini Design System React.js
Downloads
197
Keywords
Readme
Naini Design System CMS - React.js
Installation
npm install --save @nbsdev/naini-react
Configuration
// file: src/main.tsx
import { Theme, ThemeProvider } from '@nbsdev/naini-react'
import React from 'react'
import ReactDOM from 'react-dom/client'
import App from './App'
const theme: Theme = {}
ReactDOM.createRoot(document.getElementById('app')!).render(
<ThemeProvider theme={theme}>
<App />
</ThemeProvider>
)
Usage
import { Button } from '@nbsdev/naini-react'
const Component = () => {
return (
<Button
type='button'
size='md'
variant='primary'
>
Click me
</Button>
)
}
export default Component