Code of Conduct Section
Community-standards display: a heading and intro, a grid of principle cards (e.g. Respect, Inclusion, Safety) each with an icon, short title, and one-line description, followed by a short "how to report an issue" contact block. Perfect for event policies and community guidelines.
Docs
Installation
A real shadcn registry command, not a copy-paste stand-in: it fetches this block plus its button dependencies and any missing npm packages, and installs them straight into your project.
npx shadcn add https://staaarter.com/r/code-of-conduct-section.jsonPrefer not to use the CLI? Copy the source from the Code toggle above into src/components/blocks/event/event32.tsx instead.
Usage
The file also exports event32Demo, the exact props behind the preview above. Spread it to get a working section in one line, then replace it with your own data.
import { Event32, event32Demo } from "@/components/blocks/event/event32"; export default function Page() { return <Event32 {...event32Demo} />; }
Props
| Prop | Type | Default | Description |
|---|---|---|---|
| eyebrow | string | undefined | Small label above the heading. |
| heading | ReactNode | none | Section heading. |
| description | string | undefined | Supporting paragraph under the heading. |
| principles | ConductPrinciple[] | none | Principle cards, each with an icon, title, and one-line description. |
| reportHeading | string | "How to report an issue" | Heading for the bottom contact block. |
| reportDescription | string | undefined | Supporting text for the bottom contact block. |
| reportEmail | string | "[email protected]" | Contact email, rendered as a mailto link. |
| className | string | none | Extra classes for the outer section element. |
Types
interface ConductPrinciple { icon: LucideIcon; title: string; description: string; }
Behavior notes
- The report contact link renders as a plain mailto link (Button variant="link" with render={<Link/>}); there is no real contact form or backend call, it's decorative in the demo.
More Event Blocks
View all →conference-hero-with-image
Conference Hero with Image
Split hero with a featured photo, date badge, location, attendee stat, and dual CTAs.
minimal-event-hero
Minimal Event Hero
Centered, image-free hero with an oversized heading, date/location line, and two CTAs.
event-hero-with-ticket-pricing
Event Hero with Ticket Pricing
Centered hero with an early-bird price, a strikethrough original price, and a deadline note.
event-hero-with-social-proof
Event Hero with Social Proof
Hero with a heading, a 3-stat strip (attendees/speakers/countries), and a trusted-by company row.
personal-schedule-builder
Personal Schedule Builder
Interactive session picker that lets attendees build their own conference agenda.
team-discount-calculator
Team Discount Calculator
Live quantity stepper that applies tiered group discounts to a seat total.