Castle UI can be imported into your project in the following steps:
1. Install
yarn add @passfort/castle @passfort/uicontent_copyCopy
or
npm i @passfort/castle @passfort/uicontent_copyCopy
2. Add ThemeProvider
Add ThemeProvider
to the root of your application
import { ThemeProvider } from '@passfort/castle'export const App = () => {<ThemeProvider>{...}</ThemeProvider>}content_copyCopy
3. Import index.css
make sure to import index.css in your root component
import '@passfort/castle/lib/index.css'content_copyCopy
4. Finish
You can now use components from @passfort/ui
in your application.
import { CheckTemplate } from '@passfort/ui'content_copyCopy