Atoms UI Kit / 📦 Composables
General purpose Vue composables.
Uses Vite in lib mode to build for production.
Uses Vitest to run unit tests.
Installation
yarn add @atoms-studio/composables
Then import the composables you need, ie:
<script setup lang="ts">
import { useURL } from '@atoms-studio/composables'
const { url } = useURL('/about', 'http://localhost:3000')
</script>
Development
- Composables must be written in Typescript
- Every composable must have a test suite in the
tests
folder named after it, ie: test/<composableName>.test.ts
.
To execute tests, run yarn test
in the packages/composables
folder.