@easeaccess24/base-ui
v0.0.31
Published
To test the components locally, you can import the components from `lib` to the `src` folder and execute the following command to open the demo page: ```bash pnpm dev ```
Readme
Base UI
Local Component Testing
To test the components locally, you can import the components from lib to the src folder and execute the following command to open the demo page:
pnpm devLocal Package Testing
To test the client's UI locally, you need to pack it and then import the pack into the client's project.
- Execute the following command to build the base UI:
pnpm build- Execute the following command to pack the base UI:
pnpm packThis command will create a .tgz file in the root of the UI. You can then import this file into the client's project.
- In the client's project, change the
package.jsonfile to include the path to the.tgzfile:
{
"dependencies": {
"@easeaccess24/base-ui": "file:<base ui path>/base-ui-0.0.1.tgz"
}
}- Run the following command to install the UI:
pnpm install- You can now import the UI components into your project:
import { FeatureToggle } from '@easeaccess24/base-ui';Usage
The UI provides the following:
- All components
- Hooks, state, and more
- Component styles without any theme (colors, fonts, etc.)
In the client's UI project, you need to implement the following:
- Custom theme - by changing the CSS variables
- Layout - by using the components
