X Enterprises
nuxt-x-schema

Event

Schema.org Event JSON-LD component for conferences, webinars, and local events.

Event

The XSchemaEvent component injects a <script type="application/ld+json"> tag for event structured data. No visible output — SEO only.

Components

<XSchemaEvent />

Use on pages for conferences, webinars, meetups, or any scheduled event. The eventAttendanceMode prop distinguishes online, offline, and hybrid events.

<XSchemaEvent
  name="Vue Conference 2024"
  description="Annual Vue.js community conference"
  start-date="2024-06-01T09:00:00"
  end-date="2024-06-02T18:00:00"
  event-attendance-mode="OfflineEventAttendanceMode"
/>

Props

PropTypeRequiredDefaultDescription
nameStringYesEvent name
descriptionStringYesEvent description
startDateStringYesISO 8601 start datetime
endDateStringYesISO 8601 end datetime
eventAttendanceModeStringNo"OnlineEventAttendanceMode"OnlineEventAttendanceMode, OfflineEventAttendanceMode, MixedEventAttendanceMode
eventStatusStringNo"EventScheduled"EventScheduled, EventCancelled, EventPostponed, etc.
locationRecord<string, any>NoLocation object (Place or VirtualLocation)
urlStringNoEvent URL
imageString | String[]NoEvent image URL(s)
organizerOrganizationNoOrganizer Organization object
offersOfferNoTicket/registration Offer object

AI Context

component: XSchemaEvent
package: "@xenterprises/nuxt-x-schema"
output: JSON-LD script tag in <head>
use-when: Adding Event structured data for conferences, webinars, meetups, or any scheduled event
place: In page-level components (pages/ or layouts/), NOT in shared headers
notes:
  - Renderless component — no visible DOM output; purely SEO metadata
  - Injects JSON-LD server-side via useHead — SSR-safe, visible to crawlers on first paint
  - eventAttendanceMode distinguishes online, offline, and hybrid events
Copyright © 2026