Components
Explore Poodle’s collection of beautiful, accessible React components.
Overview
Poodle provides a comprehensive set of components to build modern web applications. All components are:
- ✅ Fully typed with TypeScript
- ✅ Accessible following WAI-ARIA guidelines
- ✅ Customizable with Tailwind CSS
- ✅ Responsive out of the box
Component Categories
Form Components
Interactive components for building forms and collecting user input:
Layout Components
Components for structuring and organizing content:
Getting Started
To use any component, simply import it from the poodle package:
import { Button, Input, Card } from 'poodle'
export default function MyComponent() {
return (
<Card>
<Input placeholder="Enter text" />
<Button>Submit</Button>
</Card>
)
}Common Patterns
Form Components Together
import { Button, Input, Card } from 'poodle'
import { useState } from 'react'
export default function ContactForm() {
const [email, setEmail] = useState('')
return (
<Card className="max-w-md">
<h2 className="text-xl font-bold mb-4">Contact Us</h2>
<Input
type="email"
placeholder="Your email"
value={email}
onChange={(e) => setEmail(e.target.value)}
className="mb-4"
/>
<Button variant="primary">Send</Button>
</Card>
)
}Component Props
All Poodle components accept:
- className - Additional CSS classes
- style - Inline styles object
- children - Child elements
- Component-specific props (see individual docs)
Best Practices
- Accessibility First - Always provide labels for form inputs
- Semantic HTML - Use the right component for the job
- Responsive Design - Test on different screen sizes
- Performance - Import only components you need
Need Help?
- Check the individual component pages for detailed documentation
- Join our Discord community
- Report issues on GitHub