Skip to content

@ecp.eth/sdk


@ecp.eth/sdk / embed

embed

Ethereum Comments Protocol SDK Embed Functionality for embedding comments in web applications

Components

FunctionDescription
CommentsByAuthorEmbedRenders comments embed iframe for the given author.
CommentsEmbedRenders comments embed iframe for the given uri.

Other

NameDescription
CommentsByAuthorEmbedProps-
CommentsEmbedPropsThe props for <CommentsEmbed /> component.
CreateCommentsEmbedURLParamsParameters for createCommentsEmbedURL
EmbedConfigFontSchemaType-
EmbedConfigSchemaInputTypeCustom configuration for <CommentEmbed /> component.
EmbedConfigSchemaOutputType-
EmbedConfigSupportedChainIdsSchemaTypeThe type for supported chain ids
EmbedConfigThemeColorsSchemaType-
EmbedConfigThemeOtherSchemaType-
EmbedConfigThemePaletteSchemaType-
EmbedConfigThemeSchemaTypeThe type for embed theme configuration
EmbedGetDimensionsEventSchemaType-
EmbedResizedEventSchemaType-
EmbedConfigFontSchema-
EmbedConfigFontSizeSchema-
EmbedConfigSchemaThe zod schema for EmbedConfigSchemaType
EmbedConfigSupportedChainIdsSchemaThe zod schema for supported chain ids
EmbedConfigSupportedFontIt supports the following fonts from GoogleFonts
EmbedConfigThemeColorsSchema-
EmbedConfigThemeOtherSchema-
EmbedConfigThemePaletteSchema-
EmbedConfigThemeSchemaThe zod schema for embed theme configuration
EmbedGetDimensionsEventSchema-
EmbedResizedEventSchema-
createCommentsEmbedURLCreates a URL for the comments embed iframe.