contact-1
fulldev-ui/contact-1FreeBlock
fulldev/ui publishes no description for this item.
Install it
npx shadcn@latest add https://ui.full.dev/r/contact-1.jsonSource
1---2import { cn } from "@/lib/utils"3import { Button } from "@/components/ui/button"4import {5 Field,6 FieldDescription,7 FieldGroup,8 FieldLabel,9 FieldLegend,10 FieldSet,11} from "@/components/ui/field"12import { Icon } from "@/components/ui/icon"13import { Input } from "@/components/ui/input"14import { Section, SectionContainer } from "@/components/ui/section"15import { Textarea } from "@/components/ui/textarea"1617type Props = {18 class?: string19 title: string20 description: string21 contactItems: {22 icon: string23 title: string24 description: string25 href?: string26 }[]27 form: {28 legend: string29 nameLabel: string30 namePlaceholder: string31 emailLabel: string32 emailPlaceholder: string33 messageLabel: string34 messagePlaceholder: string35 messageDescription: string36 actionLabel: string37 }38}3940const { class: className, title, description, contactItems, form } = Astro.props41---4243<Section class={cn("", className)}>44 <SectionContainer class="items-center gap-6 text-center">45 <div class="flex max-w-2xl flex-col items-center gap-4">46 <h247 class="text-foreground text-3xl font-semibold tracking-tight text-balance sm:text-4xl"48 >49 {title}50 </h2>51 <p52 class="text-muted-foreground max-w-2xl text-lg leading-relaxed text-balance"53 >54 {description}55 </p>56 </div>57 </SectionContainer>58 <SectionContainer>59 <div class="grid gap-4 sm:grid-cols-2 lg:grid-cols-4">60 {61 contactItems.map((item) => (62 <div class="flex flex-col gap-3 rounded-xl border p-5">63 {item.href ? (64 <Button65 as="a"66 href={item.href}67 variant="secondary"68 size="icon"69 class="text-primary"70 aria-label={item.title}71 >72 <Icon name={item.icon} />73 </Button>74 ) : (75 <Button76 variant="secondary"77 size="icon"78 class="text-primary"79 aria-label={item.title}80 >81 <Icon name={item.icon} />82 </Button>83 )}84 <h3 class="text-foreground text-sm font-medium">{item.title}</h3>85 <p class="text-muted-foreground text-sm leading-relaxed">86 {item.description}87 </p>88 </div>89 ))90 }91 </div>92 </SectionContainer>93 <SectionContainer>94// … 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 |
