0.12.1 • Published 10 months ago
@nhm-data/zoa v0.12.1
Zoa
UI components for the Data Portal team.
NB: Zoa is in alpha and is subject to frequent API changes with no prior notification or appropriate semantic version change.
Installation
Zoa is designed for use with Vue 3.
npm i @nhm-data/zoaUsage
See the storybook for more details on specific components.
The components can either be registered globally:
// main.js
import {createApp} from 'vue'
import App from './App.vue'
import {Zoa} from '@nhm-data/zoa';
import '@nhm-data/zoa/theme';
const app = createApp(App)
app.use(Zoa)
app.mount('#app')<!-- Component.vue -->
<template>
<zoa-button label="Submit"/>
</template>Or imported manually into individual components:
<!-- Component.vue -->
<template>
<zoa-button label="Submit"/>
</template>
<script setup>
import { ZoaButton } from '@nhm-data/zoa';
import '@nhm-data/zoa/theme';
</script>Inputs
Inputs (other than the button and toggle button) are used via the <zoa-input> (or <ZoaInput>) component:
<template>
<zoa-input zoa-type="checkbox" label="Checkbox" :options="{ name: 'chkbox', delay: '200' }"/>
<zoa-input zoa-type="textbox" label="Textbox" :options="{ placeholder: 'this is a placeholder' }"/>
</template>
<script setup>
import { ZoaInput } from '@nhm-data/zoa';
</script>0.12.2-a0
11 months ago
0.12.2-a2
10 months ago
0.12.2-a1
10 months ago
0.11.0
12 months ago
0.12.0
11 months ago
0.12.1
11 months ago
0.10.0
2 years ago
0.10.1
2 years ago
0.9.0
2 years ago
0.8.0
2 years ago
0.7.0
2 years ago
0.3.0
2 years ago
0.5.0
2 years ago
0.4.1
2 years ago
0.4.0
2 years ago
0.3.1
2 years ago
0.6.0
2 years ago
0.5.1
2 years ago
0.1.0
3 years ago