Skip to content

Components Library

ClawPlate includes a comprehensive set of Vue components designed for modern SaaS applications. Each component is built with TypeScript, styled with Tailwind CSS, and optimized for performance.

Component Categories

🎨 UI Components

Core interface elements and interactive components.

  • Button - Versatile button component with multiple variants
  • Toast - Notification system for user feedback

📐 Layout Components

Structural components for page layout and navigation.

  • Header - Main navigation with responsive design
  • Footer - Site footer with links and branding
  • GlobalModal - Centralized modal system

📝 Form Components

Input and form handling components.

🏠 Landing Page Components

Marketing and presentation components.

🎭 Interactive Components

Animation and interaction components.

⚙️ Utility Components

Helper and utility components.

Usage Patterns

All components follow consistent patterns:

  • TypeScript Support - Full type safety and IntelliSense
  • Composable Integration - Use Vue composables for state management
  • Tailwind Styling - Utility-first CSS classes
  • Accessibility - ARIA labels and keyboard navigation
  • Responsive Design - Mobile-first approach

Getting Started

To use any component in your pages or other components:

vue
<script setup lang="ts">
// Import composables as needed
const { user } = useAuth()
const { showToast } = useToasts()
</script>

<template>
  <div>
    <Header />
    <main>
      <!-- Your content -->
    </main>
    <Footer />
  </div>
</template>

Component API Reference

Each component documentation includes:

  • Props - Component properties and their types
  • Events - Emitted events and their payloads
  • Slots - Available content slots
  • Composables - Related Vue composables
  • Examples - Usage examples and code snippets

Built with love by mhdevfr