xiana-ui
v1.0.1
Published
A modern Vue 3 UI component library built with Tailwind CSS
Downloads
10
Maintainers
Readme
Xiana UI
A modern Vue 3 UI component library built with Tailwind CSS.
Features
- 🎨 Modern Design - Beautiful and accessible components
- 🚀 Vue 3 - Built with Vue 3 Composition API
- 🎯 TypeScript - Full TypeScript support
- 🎨 Tailwind CSS - Styled with Tailwind CSS
- 📦 Tree Shaking - Only import what you need
- 🎨 Customizable - Easy to customize with CSS variables
Installation
npm install xiana-uiUsage
Basic Usage
<template>
<Button variant="default" size="default"> Click me </Button>
</template>
<script setup>
import { Button } from "xiana-ui";
import "xiana-ui/style";
</script>Tailwind CSS Setup
Make sure you have Tailwind CSS installed and configured in your project:
npm install -D tailwindcss
npx tailwindcss initUpdate your tailwind.config.js:
/** @type {import('tailwindcss').Config} */
module.exports = {
content: [
"./index.html",
"./src/**/*.{vue,js,ts,jsx,tsx}",
"./node_modules/xiana-ui/**/*.{vue,js,ts,jsx,tsx}",
],
theme: {
extend: {},
},
plugins: [],
};Import Styles
Import the styles in your main entry file:
import "xiana-ui/style";Components
Button
<template>
<div class="space-x-2">
<Button variant="default">Default</Button>
<Button variant="destructive">Destructive</Button>
<Button variant="outline">Outline</Button>
<Button variant="secondary">Secondary</Button>
<Button variant="ghost">Ghost</Button>
<Button variant="link">Link</Button>
</div>
</template>
<script setup>
import { Button } from "xiana-ui";
</script>API Reference
Button Props
| Prop | Type | Default | Description |
| --------- | ----------------------------------------------------------------------------- | ----------- | ------------------------------ |
| variant | 'default' \| 'destructive' \| 'outline' \| 'secondary' \| 'ghost' \| 'link' | 'default' | The visual style of the button |
| size | 'default' \| 'sm' \| 'lg' \| 'icon' | 'default' | The size of the button |
Development
# Install dependencies
pnpm install
# Start development server
pnpm dev
# Build library
pnpm build:lib
# Build documentation
pnpm docs:buildContributing
- 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
This project is licensed under the MIT License - see the LICENSE file for details.
