🔧 AI Nachrichten Major AI platforms go down in unprecedented simultaneous outage(03.09.2026 um 17:34 Uhr)
🔧 AI Nachrichten ChatGPT, Claude, and Grok Down? Users Report Widespread Outages(03.09.2026 um 19:14 Uhr)
🔧 AI Nachrichten OpenAI Launches GPT-6 Astra, Says We May Have Entered the AGI Era(03.09.2026 um 22:08 Uhr)
🔧 AI Nachrichten Claude Comes to CarPlay as Fifth Major AI Chatbot App(05.09.2026 um 05:31 Uhr)
🔧 AI Nachrichten OpenAI’s GPT-6 Astra Is AGI, Says NVIDIA CEO Jensen Huang(07.09.2026 um 06:31 Uhr)
🔧 AI Nachrichten Blame AI companies for Mac mini and Mac Studio shortage(31.08.2026 um 10:32 Uhr)
🔧 AI Nachrichten Major AI platforms go down in unprecedented simultaneous outage(03.09.2026 um 17:34 Uhr)
🔧 AI Nachrichten ChatGPT, Claude, and Grok Down? Users Report Widespread Outages(03.09.2026 um 19:14 Uhr)
🔧 AI Nachrichten OpenAI Launches GPT-6 Astra, Says We May Have Entered the AGI Era(03.09.2026 um 22:08 Uhr)
🔧 AI Nachrichten Claude Comes to CarPlay as Fifth Major AI Chatbot App(05.09.2026 um 05:31 Uhr)
🔧 AI Nachrichten OpenAI’s GPT-6 Astra Is AGI, Says NVIDIA CEO Jensen Huang(07.09.2026 um 06:31 Uhr)
🔧 AI Nachrichten Blame AI companies for Mac mini and Mac Studio shortage(31.08.2026 um 10:32 Uhr)

🔧 Programmierung 🕛 kürzlich 2 Min Lesezeit
0

How to Use Shadcn ui in a Next.js App ?

↗ Quelle (dev.to)
🗣️ Stimme:
📑 Inhaltsübersicht




What is Shadcn UI?



Explanation:



Shadcn UI is a collection of beautiful, accessible components. But it's different from other UI libraries:




  • Not a dependency - You copy the code directly into your project

  • You own the code - You can modify anything

  • Built on Radix UI - Accessible components

  • Styled with Tailwind CSS - Uses your Tailwind config









How to Install Shadcn UI



Run this command in your terminal:



npx shadcn@latest init



select base(recommended)



After initialization, it creates:





  • components.json - Configuration file


  • lib/utils.ts - Helper functions

  • Updates your globals.css









How to Use It ?



Search in shadcn document to find components to use in your project. For example if you want to use button component: Write in your Terminal:



npx shadcn@latest add button




This adds the Button component to components/ui/button.tsx




You can also Add more components:

npx shadcn@latest add card

npx shadcn@latest add input

npx shadcn@latest add dialog

npx shadcn@latest add navbar







How to Use a Component



In your component:

Import it:

import { Button } from "@/components/ui/button"



And then use it like this:




CODE
return (
<Button>Click me</Button>
// or with variants
<Button variant="outline">Outline Button</Button>
<Button variant="destructive">Delete</Button>
)






Example with Card:




CODE
import {
Card,
CardContent,
CardDescription,
CardFooter,
CardHeader,
CardTitle,
} from "@/components/ui/card"


<Card>
<CardHeader>
<CardTitle>My Title</CardTitle>
<CardDescription>My description</CardDescription>
</CardHeader>
<CardContent>
<p>Main content here</p>
</CardContent>
<CardFooter>
<p>Footer</p>
</CardFooter>
</Card>


Vollständiger Original-Bericht
Ausführliche Details, Code-Beispiele & Hersteller-Stellungnahme auf dev.to.
↗ Original-Artikel auf dev.to lesen
Wie bewertest du diesen Beitrag?
1 Klick Feedback
Teilen mit Netzwerk & Team:

Community-Analysen & Experten-Meinungen 0

Verfasse deine eigene Analyse, teile Workarounds oder diskutiere diesen Vorfall im Blog.
Noch keine Community-Analyse verfasst. Markiere einen Textabschnitt oder klicke oben auf Eigene Analyse verfassen“!
Community Pulse: Relevanz-Einschätzung
1 Klick Experten-Votum
🔴 Akute Relevanz 0%
🟡 In Evaluierung 0%
🟢 Keine Auswirkung 0%
Spannende Innovation 0%
Verwandte Story-Cluster & Quellen (Vektor-KI)
Port 8095 Engine
3 Quellen
GPT-6 Astra Release Today? OpenAI’s Next Major AI Model Is Almost Here
1 Quelle
Apple accuses OpenAI of destroying evidence as trade-secrets fight intensifies
1 Quelle
Major AI platforms go down in unprecedented simultaneous outage
Ähnliche Beiträge
🔍 Verwandte News

Auch interessante Nachrichten How to Use Shadcn ui in a Next.js App ?

Thematisch verwandte Begriffe: Shadcn, Nextjs · 6 Treffer

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...