open-index/open-npm huggingface dataset:
npm package: @moroadmin/ui
Description: Moroadmin UI component library
Latest version: 0.1.4

# @moroadmin/ui

Moroadmin UI is a shared component library for the admin host and plugins.

## Install

```bash
pnpm add @moroadmin/ui
```

## Usage

```ts
import '@moroadmin/ui/style.css'
import { MoroButton } from '@moroadmin/ui'
```

## Theme

```ts
import { setTheme } from '@moroadmin/ui'

setTheme('dark')
```

## Component Notes

- `MoroButton` and `MoroTag` accept `tone` (e.g. `primary`, `success`)
- `MoroForm` and `MoroTable` accept `dense`
- `MoroDialog` accepts `size` (`sm`, `md`, `lg`)
- `MoroCard` accepts `elevated`

## Build

```bash
npm install
npm run build
```

## Private Registry

Create `.npmrc` (example below) with your private registry and token:

```bash
@moroadmin:registry=https://your.private.registry
//your.private.registry/:_authToken=${NPM_TOKEN}
```

## Publish

```bash
npm publish --access restricted
```

## CI Publish

The included GitHub Actions workflow publishes on tag pushes. Required secrets:

- `NPM_REGISTRY`
- `NPM_REGISTRY_HOST`
- `NPM_TOKEN`