Dev Helpers
← Back

Editorial callout

Import and render <EditorialCallout /> in a React project.

Open this example in the interactive library

Live preview

Source code

// components/EditorialCallout.tsx

import type { ReactNode } from "react";

export default function EditorialCallout({
  heading = "Workshop",
  children = "Details are available at the front desk.",
}: { heading?: string; children?: ReactNode } = {}) {
  return (
    <aside
      style={{
        borderInlineStart: "3px solid currentColor",
        paddingInlineStart: "1rem",
      }}
    >
      <strong>{heading}</strong>
      <div>{children}</div>
    </aside>
  );
}