Component from Waghubinger Registry
Requires REGISTRY_TOKEN in .env.local
pnpm dlx shadcn add @waghubinger/hello-worldFor quick testing or one-time installation
pnpm dlx shadcn add http://localhost:3000/r/hello-world.json?token=reO2TJ1CDL8vO-IxZatQTNV1POL6pqKi4e-GxVBKYIcNfhj2nVBl-hXNQkZXPwmA simple test component for the Waghubinger Registry. Demonstrates basic component structure, client-side state management, and Tailwind styling.
Install this component via the Waghubinger Registry:
pnpm dlx shadcn add https://registry.tools.asscompact.at/r/hello-world.json?token=YOUR_TOKEN
What gets installed:
hello-world.tsx)Before using this component, ensure you have:
Here's a minimal working example:
'use client'
import { HelloWorld } from "@/components/hello-world/hello-world"
export default function ExamplePage() {
return (
<div className="container mx-auto p-8">
<HelloWorld />
</div>
)
}
'use client'
import { HelloWorld } from "@/components/hello-world/hello-world"
export default function ExamplePage() {
return (
<div className="container mx-auto p-8">
<HelloWorld name="Thomas" />
<HelloWorld name="Waghubinger" />
</div>
)
}
| Prop | Type | Required | Default | Description |
|---|---|---|---|---|
name | string | No | "World" | The name to display in the greeting |
export interface HelloWorldProps {
name?: string
}
See the /examples folder for complete working examples:
This component uses Tailwind CSS and can be customized by modifying the source:
// Modify the component after installation in your project
<div className="p-6 border rounded-lg shadow-sm bg-card">
{/* Component content */}
</div>
The component respects your theme configuration for:
primary colors (button background)primary-foreground (button text)muted-foreground (secondary text)Symptoms: Component doesn't appear or shows errors
Solution:
'use client' at the top of your page/component@/components/hello-world/hello-worldSymptoms: Component appears unstyled
Solution: Ensure Tailwind is configured to scan the component:
// tailwind.config.ts
module.exports = {
content: [
'./components/**/*.{js,ts,jsx,tsx,mdx}',
// ... other paths
],
}
This component is primarily for:
Found a bug or want to contribute? This component is part of the Waghubinger Registry.
Development Setup:
registry/waghubinger/hello-world//app/hello-world/ demo pagepnpm registry:buildMIT License - Part of Waghubinger Registry
For issues or questions:
Version: 1.0.0 Last Updated: 2025-01-03 Registry: https://registry.tools.asscompact.at Documentation: https://registry.tools.asscompact.at/hello-world