Components
Example with CSS
A login form demonstrating CSS file bundling with registry components.
Example with CSS
A login form demonstrating how to include CSS files alongside components in the registry.
Preview
Loading preview...
Installation
Terminal
$npx shadcn@latest add @vandoko/example-with-cssUsage
import { ExampleCard } from "@/components/example-card";
export default function LoginPage() {
return <ExampleCard />;
}Features
- CSS Bundling - Demonstrates CSS file inclusion in registry
- Self-Contained - All styles scoped to component
- Responsive - Adjusts for mobile screens
- Form Pattern - Email/password login flow
Files
This component includes multiple files:
| File | Type | Purpose |
|---|---|---|
example-card.tsx | Component | React component |
example-card.css | Styles | Scoped CSS styles |
CSS Variables
The component defines its own CSS custom properties:
.login-container {
--primary-color: #111111;
--primary-hover: #484747;
--error-color: #ef4444;
--text-color: #1f2937;
--text-light: #6b7280;
--border-color: #e5e7eb;
--background-light: #f9fafb;
}Lineage
| Property | Value |
|---|---|
| Type | registry:component |
| Curated | 2025-01-19 |