doc-1
fulldev-ui/doc-1FreeBlock
fulldev/ui publishes no description for this item.
Live preview
live · rendered by the registry
Rendered by fulldev/ui on their own page — this is the component running, not a screenshot of it.Install it
npx shadcn@latest add https://ui.full.dev/r/doc-1.jsonSource
1---2import { cn } from "@/lib/utils"3import { Button } from "@/components/ui/button"4import { buttonVariants } from "@/components/ui/button/button-variants"5import {6 Card,7 CardDescription,8 CardFooter,9 CardHeader,10} from "@/components/ui/card"11import {12 DropdownMenu,13 DropdownMenuContent,14 DropdownMenuTrigger,15} from "@/components/ui/dropdown-menu"16import { Icon } from "@/components/ui/icon"17import { SectionContainer } from "@/components/ui/section"18import {19 Toc,20 TocMenu,21 TocMenuItem,22 TocMenuLink,23 TocTitle,24} from "@/components/ui/toc"25import {26 Typography,27 TypographyH1,28 TypographyLead,29} from "@/components/ui/typography"3031type Props = {32 class?: string33 title: string34 description?: string35 copyButton?: {36 id: string37 source: string38 }39 markdownUrl?: string40 tocItems: {41 depth: number42 href: string43 label: string44 }[]45 callout?: {46 description: string47 button: {48 label: string49 href: string50 variant?: "default" | "outline" | "secondary" | "ghost"51 }52 }53 previousPage?: {54 href: string55 title: string56 }57 nextPage?: {58 href: string59 title: string60 }61 labels: {62 copyMarkdown: string63 openIn: string64 openInMarkdown: string65 openInChatGPT: string66 openInClaude: string67 openInCursor: string68 pagination: {69 previous: string70 next: string71 ariaLabel: string72 }73 toc: string74 }75}7677const {78 class: className,79 title,80 description,81 copyButton,82 markdownUrl,83 tocItems,84 callout,85 previousPage,86 nextPage,87 labels,88} = Astro.props89const showCopyButton = Boolean(copyButton)90const showOpenButton = Boolean(markdownUrl)91const showPagination = Boolean(previousPage || nextPage)92const assistantPrompt = markdownUrl93 ? `Read ${markdownUrl}, I want to ask questions about it.`94 : ""95const openLinks = markdownUrl96 ? [97 {98 label: labels.openInMarkdown,99 href: markdownUrl,100 icon: "markdown",101 },102 {103 label: labels.openInChatGPT,104 href: `https://chatgpt.com/?hints=search&q=${encodeURIComponent(assistantPrompt)}`,105 icon: "chatgpt",106 },107 {108 label: labels.openInClaude,109 href: `https://claude.ai/new?q=${encodeURIComponent(assistantPrompt)}`,110 icon: "claude",111 },112 {113 label: labels.openInCursor,114 href: `https://cursor.com/link/prompt?text=${encodeURIComponent(assistantPrompt)}`,115 icon: "cursor",116 },117 ]118 : []119---120121// … truncated
What it pulls in
Other registry items
Files it writes
More from fulldev/ui
All 144 items| Component | Registry | Kind | Access | Installs | Command |
|---|---|---|---|---|---|
| article-1article-1 | fulldev/ui | Blocks | Free | no deps | |
| article-2article-2 | fulldev/ui | Blocks | Free | no deps | |
| articles-1articles-1 | fulldev/ui | Blocks | Free | no deps | |
| articles-2articles-2 | fulldev/ui | Blocks | Free | no deps | |
| articles-3articles-3 | fulldev/ui | Blocks | Free | no deps | |
| articles-4articles-4 | fulldev/ui | Blocks | Free | no deps | |
| banner-1banner-1 | fulldev/ui | Blocks | Free | no deps | |
| banner-2banner-2 | fulldev/ui | Blocks | Free | no deps |
