@moroadmin/ui
v0.1.4
Published
Moroadmin UI component library
Readme
@moroadmin/ui
Moroadmin UI is a shared component library for the admin host and plugins.
Install
pnpm add @moroadmin/uiUsage
import '@moroadmin/ui/style.css'
import { MoroButton } from '@moroadmin/ui'Theme
import { setTheme } from '@moroadmin/ui'
setTheme('dark')Component Notes
MoroButtonandMoroTagaccepttone(e.g.primary,success)MoroFormandMoroTableacceptdenseMoroDialogacceptssize(sm,md,lg)MoroCardacceptselevated
Build
npm install
npm run buildPrivate Registry
Create .npmrc (example below) with your private registry and token:
@moroadmin:registry=https://your.private.registry
//your.private.registry/:_authToken=${NPM_TOKEN}Publish
npm publish --access restrictedCI Publish
The included GitHub Actions workflow publishes on tag pushes. Required secrets:
NPM_REGISTRYNPM_REGISTRY_HOSTNPM_TOKEN
