For the complete documentation index, see llms.txt. Markdown variants are available by appending .md to any URL or sending an Accept: text/markdown header. An agent skill is available at /.well-known/agent-skills/site-skill.md.
30
Sponsor

Event List

Display events in grid, list, or carousel layouts. Fullscreen mode shows interactive split-screen map with Leaflet and animated filter panel.

Installation

$ pnpm dlx shadcn@latest add @mcpcn/event-list

Usage

import { EventList, EventListContent } from "@/components/ui/event-list";
<EventList>
  <EventListContent />
</EventList>

Composition

Use the following composition to build an EventList:

EventList
└── EventListContent

Examples

Grid

"use client";

import { EventList, EventListContent } from "@/components/ui/event-list";

export function EventListGridDemo() {
  return (
    <EventList appearance={{ variant: "grid" }}>
      <EventListContent />
    </EventList>
  );
}
"use client";

import { EventList, EventListContent } from "@/components/ui/event-list";

export function EventListCarouselDemo() {
  return (
    <EventList appearance={{ variant: "carousel" }}>
      <EventListContent />
    </EventList>
  );
}

OpenUI Integration

Install the OpenUI React packages.

pnpm add @openuidev/react-lang zod

Add EventList to a component library and map it to the installed component.

import { createLibrary, defineComponent } from "@openuidev/react-lang";
import { z } from "zod/v4";
 
import { EventList, EventListContent } from "@/components/ui/event-list";
 
const OpenUIEventList = defineComponent({
  name: "EventList",
  description:
    "Display events in grid, list, or carousel layouts. Fullscreen mode shows interactive split-screen map with Leaflet and animated filter panel.",
  props: z.object({}),
  component: () => (
    <EventList>
      <EventListContent />
    </EventList>
  ),
});
 
export const event_listLibrary = createLibrary({
  root: "EventList",
  components: [OpenUIEventList],
});

For richer generated compositions, define the child primitives separately and connect them with .ref fields. See Defining Components in the OpenUI documentation.

json-render Integration

Install the json-render React packages.

pnpm add @json-render/core @json-render/react zod

Add EventList to a component catalog and map it to the installed component.

import { defineCatalog } from "@json-render/core";
import { defineRegistry } from "@json-render/react";
import { schema } from "@json-render/react/schema";
import { z } from "zod";
 
import { EventList, EventListContent } from "@/components/ui/event-list";
 
export const catalog = defineCatalog(schema, {
  components: {
    EventList: {
      props: z.object({}),
      description:
        "Display events in grid, list, or carousel layouts. Fullscreen mode shows interactive split-screen map with Leaflet and animated filter panel.",
    },
  },
});
 
export const { registry } = defineRegistry(catalog, {
  components: {
    EventList: () => (
      <EventList>
        <EventListContent />
      </EventList>
    ),
  },
});

Use catalog.prompt() to constrain model output, then render the generated spec with the json-render React Renderer. See the json-render Quick Start for the provider and streaming setup.

API Reference

See the Base UI documentation for more information.