Skip to content

@ecp.eth/sdk


@ecp.eth/sdk / embed / CommentsEmbedProps

Type Alias: CommentsEmbedProps

type CommentsEmbedProps = {
  containerProps?: React.HTMLAttributes<HTMLDivElement>;
  embedUri?: string;
  iframeProps?: React.IframeHTMLAttributes<HTMLIFrameElement>;
  uri: string | URL;
} & EmbedConfigSchemaInputType;

Defined in: packages/sdk/src/embed/react.tsx:17

The props for <CommentsEmbed /> component.

Type declaration

containerProps?

optional containerProps: React.HTMLAttributes<HTMLDivElement>;

Allows to pass custom props to iframe's wrapper element

embedUri?

optional embedUri: string;

URL of the comments embed iframe page. This page is rendered in the iframe.

iframeProps?

optional iframeProps: React.IframeHTMLAttributes<HTMLIFrameElement>;

Allows to pass custom props to iframe

uri

uri: string | URL;

URL of the page to embed comments for. Comments for this uri are rendered in iframe's page.