blocks-1
fulldev-ui/blocks-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/blocks-1.jsonSource
1---2import { cn } from "@/lib/utils"3import { Button } from "@/components/ui/button"4import { buttonVariants } from "@/components/ui/button/button-variants"5import {6 DropdownMenu,7 DropdownMenuContent,8 DropdownMenuTrigger,9} from "@/components/ui/dropdown-menu"10import { Icon } from "@/components/ui/icon"11import { SectionContainer } from "@/components/ui/section"12import {13 Typography,14 TypographyH1,15 TypographyLead,16} from "@/components/ui/typography"1718type Props = {19 class?: string20 title: string21 description?: string22 copyButton?: {23 id: string24 source: string25 }26 markdownUrl?: string27 previousPage?: {28 href: string29 title: string30 }31 nextPage?: {32 href: string33 title: string34 }35 labels: {36 copyMarkdown: string37 openIn: string38 openInMarkdown: string39 openInChatGPT: string40 openInClaude: string41 openInCursor: string42 pagination: {43 previous: string44 next: string45 ariaLabel: string46 }47 }48}4950const {51 class: className,52 title,53 description,54 copyButton,55 markdownUrl,56 previousPage,57 nextPage,58 labels,59} = Astro.props60const showCopyButton = Boolean(copyButton)61const showOpenButton = Boolean(markdownUrl)62const showPagination = Boolean(previousPage || nextPage)63const assistantPrompt = markdownUrl64 ? `Read ${markdownUrl}, I want to ask questions about it.`65 : ""66const openLinks = markdownUrl67 ? [68 {69 label: labels.openInMarkdown,70 href: markdownUrl,71 icon: "markdown",72 },73 {74 label: labels.openInChatGPT,75 href: `https://chatgpt.com/?hints=search&q=${encodeURIComponent(assistantPrompt)}`,76 icon: "chatgpt",77 },78 {79 label: labels.openInClaude,80 href: `https://claude.ai/new?q=${encodeURIComponent(assistantPrompt)}`,81 icon: "claude",82 },83 {84 label: labels.openInCursor,85 href: `https://cursor.com/link/prompt?text=${encodeURIComponent(assistantPrompt)}`,86 icon: "cursor",87 },88 ]89 : []90---9192<SectionContainer93 data-slot="blocks-page"94 class={cn("gap-10 pt-10 pb-10 sm:pt-12 sm:pb-12", className)}95>96 <div class="mx-auto flex w-full max-w-336 flex-col gap-10">97 <header98 class="flex flex-col gap-4 border-b pb-8 sm:flex-row sm:items-start sm:justify-between"99 >100 <div class="flex max-w-3xl min-w-0 flex-1 flex-col gap-2">101 <TypographyH1102 class="text-foreground text-left text-3xl tracking-tight sm:text-4xl"103 >104// … 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 |
