sonnat-vue
v0.1.4
Published
Vue component library using Sonnat Design System to build faster, elegant, and accessible web applications
Readme
Sonnat Vue
A Vue 3 component library using Sonnat Design System with TailwindCSS 4, providing elegant and accessible web components.
Installation
npm install sonnat-vue
# or
yarn add sonnat-vueUsage
Global Registration
import { createApp } from 'vue'
import SonnatVue from 'sonnat-vue'
import 'sonnat-vue/dist/style.css'
const app = createApp(App)
app.use(SonnatVue)
app.mount('#app')Individual Components
<script setup>
import { SButton, SInput } from 'sonnat-vue'
</script>
<template>
<div>
<s-button variant="primary">Click me</s-button>
<s-input placeholder="Enter text..." />
</div>
</template>Components
SButton- Button component with primary and secondary variantsSInput- Text input componentSCard- Card container componentSCheckbox- Checkbox input componentSRadio- Radio input componentSSelect- Select dropdown componentSModal- Modal dialog componentSTooltip- Tooltip component
Features
- 🎨 Beautiful design based on Sonnat Design System
- 🌟 Modern Vue 3.5 Composition API
- 🎯 Written in TypeScript
- 🎭 Fully accessible components
- 📦 TailwindCSS 4 integration
- 🚀 Tree-shakeable exports
- 📱 Responsive and mobile-friendly
Development
# Install dependencies
yarn install
# Start development server
yarn dev
# Build for production
yarn build
# Run tests
yarn test
# Lint code
yarn lintContributing
- Fork the repository
- Create your feature branch (
git checkout -b feature/amazing-feature) - Commit your changes (
git commit -m 'Add some amazing feature') - Push to the branch (
git push origin feature/amazing-feature) - Open a Pull Request
License
MIT License - see the LICENSE file for details
