Files
nanakura dc26878386
CI / Lint (push) Canceled after 0s
CI / Build Test (stage-web) (push) Canceled after 0s
CI / Build Test (ui-loading-screens) (push) Canceled after 0s
CI / Build Test (ui-transitions) (push) Canceled after 0s
CI / Unit Test (push) Canceled after 0s
CI / Type Check (push) Canceled after 0s
CI / Check Provenance (push) Canceled after 0s
Sync Labels / sync-labels (push) Successful in 1m43s
chore: prune unused apps and services for the moeka fork
- Remove stage-tamagotchi, stage-pocket, server, and engine workspaces with their workflows, addons, and docs
- Switch the toolchain from pnpm to bun, replace lockfiles with bun.lock
- Rewrite remaining product references to Moeka
2026-09-14 16:40:49 +07:00

72 lines
1.6 KiB
Markdown

# @proj-airi/ui
A stylized UI component library built with [Reka UI](https://reka-ui.com/) and [UnoCSS](https://unocss.dev/).
To preview the components, refer to the [`stage-ui`](../stage-ui) package for instructions for running the Histoire UI storyboard.
## Get started
Install the library:
```shell
ni @proj-airi/ui -D # from @antfu/ni, can be installed via `npm i -g @antfu/ni`
bun add @proj-airi/ui -D
yarn i @proj-airi/ui -D
npm i @proj-airi/ui -D
```
This library requires `unocss` with Attributify Mode and a style reset.
First, install `unocss` if you haven't already:
```shell
bun add -D unocss
```
Next, in your `uno.config.ts`, add `presetAttributify()` to your presets array:
```ts
import { defineConfig, presetAttributify } from 'unocss'
export default defineConfig({
presets: [
presetAttributify(),
// ...your other presets
],
})
```
Finally, import the reset styles in your `main.ts`:
```ts
import '@unocss/reset/tailwind.css'
```
## Usage
```vue
<script setup lang="ts">
import { Button } from '@proj-airi/ui'
</script>
<template>
<Button>Click me</Button>
</template>
```
## Components
* [Animations](src/components/Animations)
* [TransitionVertical](src/components/Animations/TransitionVertical.vue)
* [Form](src/components/Form)
* [Checkbox](src/components/Form/Checkbox)
* [Select](src/components/Form/Select)
* [Field](src/components/Form/Field)
* [Input](src/components/Form/Input)
* [Radio](src/components/Form/Radio)
* [Range](src/components/Form/Range)
* [ComboboxSelect](src/components/Form/Select)
* [Textarea](src/components/Form/Textarea)
## License
[MIT](../../LICENSE)