BlockDex

Components

Registries

Free blocks

Method

BlockDex

Components

Registries

Free blocks

Method

Open API

BlockDex

Components

Registries

Free blocks

Method

Open API

Components/cult/ui/ai-instructions-demo

ai-instructions-demo

cult-ui/ai-instructions-demo
FreeComponent

cult/ui publishes no description for this item.

Install it

npx shadcn@latest add https://raw.githubusercontent.com/nolly-studio/cult-ui/HEAD/apps/www/public/r/styles/default/ai-instructions-demo.json

Source

registry/default/example/ai-instructions-demo.tsxraw.githubusercontent.com/nolly-studio/cult-ui/HEAD/apps/www/public/r/styles/default/ai-instructions-demo.json
1"use client"
2
3import { useState } from "react"
4
5import {
6 Instruction,
7 Instructions,
8 InstructionsContent,
9 InstructionsCreateDialog,
10 InstructionsCreateTrigger,
11 InstructionsEmpty,
12 InstructionsFooter,
13 InstructionsGroup,
14 InstructionsItem,
15 InstructionsList,
16 InstructionsSearch,
17 InstructionsTrigger,
18} from "../ui/ai-instructions"
19
20const SAMPLE_INSTRUCTIONS: Instruction[] = [
21 {
22 id: "concise",
23 title: "Be Concise",
24 description: "Keep responses short and to the point",
25 content:
26 "Provide brief, focused responses. Avoid unnecessary elaboration unless specifically requested. Get to the point quickly.",
27 },
28 {
29 id: "code-examples",
30 title: "Include Code Examples",
31 description: "Always include relevant code snippets",
32 content:
33 "When explaining technical concepts, always include working code examples that demonstrate the concept. Use appropriate syntax highlighting.",
34 },
35 {
36 id: "explain-reasoning",
37 title: "Explain Your Reasoning",
38 description: "Walk through your thought process step by step",
39 content:
40 "Before providing a solution, explain the reasoning behind your approach. Break down complex problems into smaller steps.",
41 },
42 {
43 id: "typescript",
44 title: "Prefer TypeScript",
45 description: "Use TypeScript over JavaScript when possible",
46 content:
47 "Write all code examples in TypeScript with proper type annotations. Include interfaces and type definitions.",
48 },
49 {
50 id: "accessibility",
51 title: "Consider Accessibility",
52 description: "Ensure solutions are accessible to all users",
53 content:
54 "Include ARIA attributes, semantic HTML, keyboard navigation support, and screen reader considerations in all UI-related code.",
55 },
56]
57
58export default function AiInstructionsDemo() {
59 const [activeInstructions, setActiveInstructions] = useState<string[]>([
60 "concise",
61 ])
62 const [instructions, setInstructions] =
63 useState<Instruction[]>(SAMPLE_INSTRUCTIONS)
64
65 return (
66 <div className="flex w-full max-w-md flex-col gap-4">
67 <div className="rounded-lg border bg-card p-4">
68 <p className="mb-3 text-muted-foreground text-sm">
69 Configure AI behavior with custom instructions. Click the button below
70 to manage your active instructions.
71 </p>
72 <Instructions
73 instructions={instructions}
74 onInstructionsChange={setInstructions}
75 onValueChange={setActiveInstructions}
76// … truncated

What it pulls in

Other registry items

  • ai-instructions

Files it writes

  • registry/default/example/ai-instructions-demo.tsx

Facts

Registry
cult/ui
Type
registry:component
Access
Free
Files written
1
Licence
the repository states none
First indexed
2026-08-01
Last confirmed
today

Go to the source

www.cult-ui.com nolly-studio/cult-ui on GitHub Raw registry item This item as JSON

More from cult/ui

All 157 items
Same registry, same kind — the ones you would have found next
ComponentRegistryKindAccessInstallsCommand
ai-instructionsai-instructionscult/uiComponentsFree2 deps
animated-numberanimated-numbercult/uiComponentsFree1 dep
animated-number-demoanimated-number-democult/uiComponentsFreeno deps
bg-animate-buttonbg-animate-buttoncult/uiComponentsFreeno deps
bg-animate-button-demobg-animate-button-democult/uiComponentsFreeno deps
bg-animated-fractal-dot-gridbg-animated-fractal-dot-gridcult/uiComponentsFree1 dep
bg-animated-fractal-dot-grid-demobg-animated-fractal-dot-grid-democult/uiComponentsFreeno deps
bg-animated-gradientbg-animated-gradientcult/uiComponentsFree1 dep
BlockDex

Built by

Kynth Studio

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

BlockDex

BlockDex

Built by

Kynth Studio

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

BlockDex

BlockDex

Built by

Kynth Studio

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

BlockDex