contact-2
fulldev-ui/contact-2FreeBlock
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/contact-2.jsonSource
1---2import { cn } from "@/lib/utils"3import { Button } from "@/components/ui/button"4import {5 Field,6 FieldGroup,7 FieldLabel,8 FieldLegend,9 FieldSet,10} from "@/components/ui/field"11import { Icon } from "@/components/ui/icon"12import { Input } from "@/components/ui/input"13import { Section, SectionContainer } from "@/components/ui/section"14import { Textarea } from "@/components/ui/textarea"1516type Props = {17 class?: string18 title: string19 description: string20 contactItems: {21 icon: string22 title: string23 description: string24 href?: string25 }[]26 form: {27 title: string28 legend: string29 nameLabel: string30 namePlaceholder: string31 emailLabel: string32 emailPlaceholder: string33 messageLabel: string34 messagePlaceholder: string35 actionLabel: string36 }37}3839const { class: className, title, description, contactItems, form } = Astro.props40---4142<Section class={cn("", className)}>43 <SectionContainer44 class="grid gap-10 lg:grid-cols-[minmax(0,1fr)_22rem] lg:items-start"45 >46 <div class="flex flex-col gap-6">47 <div class="flex flex-col gap-4">48 <h249 class="text-foreground text-3xl font-semibold tracking-tight text-balance sm:text-4xl"50 >51 {title}52 </h2>53 <p class="text-muted-foreground max-w-xl text-base leading-relaxed">54 {description}55 </p>56 </div>57 <div class="rounded-xl border p-6">58 <div class="mb-6">59 <h3 class="text-lg font-medium">{form.title}</h3>60 </div>61 <FieldSet>62 <FieldLegend class="sr-only">{form.legend}</FieldLegend>63 <FieldGroup>64 <div class="grid gap-4 md:grid-cols-2">65 <Field>66 <FieldLabel for="contact-name-2">{form.nameLabel}</FieldLabel>67 <Input id="contact-name-2" placeholder={form.namePlaceholder} />68 </Field>69 <Field>70 <FieldLabel for="contact-email-2">{form.emailLabel}</FieldLabel>71 <Input72 id="contact-email-2"73 type="email"74 placeholder={form.emailPlaceholder}75 />76 </Field>77 </div>78 <Field>79 <FieldLabel for="contact-message-2"80 >{form.messageLabel}</FieldLabel81 >82 <Textarea83 id="contact-message-2"84 rows={5}85 placeholder={form.messagePlaceholder}86 />87// … 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 |
