Getting Started
maz-ui gives you 50+ Vue 3 components, with composables, directives and plugins, and the packages around them: themes, icons, translations, helpers, a Nuxt module and the tools for AI agents. Import only what you use, everything is typed.
Migrating from v4?
Run npx @maz-ui/upgrade ./ for the mechanical part of the migration, then follow the v5 migration guide.
Choose your framework
A first form
<script setup lang="ts">
import MazBtn from 'maz-ui/components/MazBtn'
import MazInput from 'maz-ui/components/MazInput'
import { useToast } from 'maz-ui/composables/useToast'
const email = ref('')
const toast = useToast()
function signUp() {
toast.success(`Welcome ${email.value}`)
}
</script>
<template>
<MazInput v-model="email" label="Email" type="email" start-icon="envelope" />
<MazBtn color="primary" end-icon="arrow-right" size="lg" @click="signUp">
Sign up
</MazBtn>
</template>Each component, composable and helper has its own import (maz-ui/components/MazBtn, @maz-ui/utils/helpers/debounce): only what you import is bundled. The icons are used by name, with MazUi() or @maz-ui/nuxt.
Ecosystem
Keep the packages on the same version
maz-ui and its packages are released together, on the same version: keep them on it. Two versions of a package install two copies, a heavier bundle, and two copies of maz-ui do not share their configuration.
Group their updates in one pull request
With Dependabot (.github/dependabot.yml):
version: 2
updates:
- package-ecosystem: npm
directory: /
schedule:
interval: weekly
groups:
maz-ui:
patterns:
- maz-ui
- '@maz-ui/*'With Renovate (renovate.json):
{
"packageRules": [
{
"groupName": "maz-ui",
"matchPackageNames": ["maz-ui", "@maz-ui/*"]
}
]
}Next steps
- Components: live examples and API of each component
- Tailwind CSS: the theme tokens of maz-ui in your Tailwind classes
- MazUiProvider: load maz-ui only on the pages that use it
- GitHub discussions and issues for help