Castle logo

CASTLE UI

Search

K

Castle UI can be imported into your project in the following steps:

1. Install

yarn add @passfort/castle @passfort/ui

Copy

or

npm i @passfort/castle @passfort/ui

Copy

2. Add ThemeProvider

Add ThemeProvider to the root of your application

import { ThemeProvider } from '@passfort/castle'
export const App = () => {
<ThemeProvider>
{...}
</ThemeProvider>
}

Copy

3. Import index.css

make sure to import index.css in your root component

import '@passfort/castle/lib/index.css'

Copy

4. Finish

You can now use components from @passfort/ui in your application.

import { CheckTemplate } from '@passfort/ui'

Copy

Contents