Skip to main content
Clever Ops

Event Code of Conduct

A code-of-conduct and accessibility block, a confident pledge set large, provisions as a dl grid, and real report channels. React and Tailwind trust section for events.

Preview & code

Loading Event Code of Conduct preview

Installation

pnpm dlx shadcn@latest add @cleverui/event-code-of-conduct

Requires the @cleverui registry in your components.json, a one-off, two-line setup.

Usage

tsx
import { EventCodeOfConduct } from '@/components/blocks/event-code-of-conduct'
Exampletsx
import { EventCodeOfConduct } from '@/components/blocks/event-code-of-conduct'

export default function EventCodeOfConductDemo() {
  return (
    <div className="mx-auto w-full">
      <EventCodeOfConduct
        eyebrow="HOUSE RULES · ALL THREE DAYS"
        heading="Code of conduct"
        pledge="Everyone here is safe, welcome, and heard, no exceptions, no fine print."
        expectationsLabel="The short version"
        expectations={[
          'Respect the room',
          'No recording without consent',
          'Ask before you photograph',
          'Challenge ideas, not people',
          'If someone says stop, stop',
        ]}
        accessLabel="Accessibility"
        access={[
          {
            label: 'Live captions',
            detail: 'On both stages, all sessions, open to every seat.',
          },
          {
            label: 'Quiet room',
            detail: 'Level 2, staffed all day, low light, no networking.',
          },
          {
            label: 'Mobility',
            detail: 'Step-free routes marked on every floor plan and app map.',
          },
          {
            label: 'Assistance dogs',
            detail: 'Welcome in all public spaces, including the main hall.',
          },
        ]}
        reportLabel="Report a problem"
        report={{
          note: 'Something wrong? Tell us immediately, day or night. We respond within the hour while the event is open.',
          email: 'conduct@northstage.events',
          phone: '+61 2 5550 0142',
          atEvent: 'At the venue: any crew member in a red lanyard',
        }}
        policyHref="#full-policy"
        policyLabel="Read the full policy"
      />
    </div>
  )
}

API reference

EventCodeOfConduct accepts the following props.

PropTypeDefaultDescription
eyebrowstringmono kicker, preformatted, never derived from Date
headingstring'Code of conduct'
pledge*stringone confident sentence set at display scale
expectationsstring[]short imperative lines, the policy's short version
expectationsLabelstring'The short version'
access*AccessProvision[]accessibility provisions as term-detail pairs
accessLabelstring'Accessibility'
reportReportChannels
reportLabelstring'Report a problem'
policyHrefstringquiet full-policy text link when provided
policyLabelstring'Read the full policy'

…plus everything from React.HTMLAttributes<HTMLElement>: className, event handlers, aria attributes and the rest pass straight through.

Referenced types

Typestsx
export interface AccessProvision {
  label: string
  detail?: string
}

export interface ReportChannels {
  note: string
  email?: string
  phone?: string
  /** plain line, e.g. 'At the venue: any crew member in a red lanyard' */
  atEvent?: string
}

Frequently asked questions

How do I install the Event Code of Conduct component?

Register the @cleverui registry in your components.json ("@cleverui": "https://cleverops.com.au/r/{name}.json"), then run `npx shadcn@latest add @cleverui/event-code-of-conduct`. The shadcn CLI copies the source into your project, you own the code from that point. You can also copy the source directly from this page.

What dependencies does Event Code of Conduct require?

Event Code of Conduct uses motion and lucide-react on top of React and Tailwind CSS. You don't need to install them manually, the shadcn CLI resolves and installs npm dependencies automatically when you add the component.

Can I theme Event Code of Conduct to match my brand?

Yes. The component is styled entirely with Tailwind utilities over standard design tokens (primary, background, muted, border), so it inherits your existing shadcn/ui theme automatically. Change your CSS variables and the component follows, no source edits needed for palette, radius, or fonts.

Want this built for you?

CleverUI is built by the Clever Ops web team. If you'd rather ship a hand-coded, fast, custom website than assemble one, we build them for Australian businesses every week.

Explore web development services