@ds_origo/shared-ds-ui-core
v0.0.1
Published
## Creating new component
Downloads
1
Readme
shared-ds-ui-core
Creating new component
- run nx generate @nrwl/next:component mycomponent --project=shared-ds-ui-core --style=scss
- or use the nx console extenstion for visual studio code to generate the component
- rename the mycomponent.tsx to index.tx
- add styles import as import styles from './mycomponent.module.scss"
- use the styles as
- add export for the newly created component under shared-ds-ui-core/src/lib/index.ts "export { MyComponent } from './lib/mycomponent
Usage
- Now you can use this component in any project whereever in the repository
- import { MyComponent } from '@digital-solutions/shared-shared-ds-ui-core'