Functiondiscord-component-embedv1.1.1
h<Props>(
type: (props: Props) => EmbedNode,
props: object extends OwnProps<Props>
? OwnProps<Props> | null
: OwnProps<Props>,
children: ChildrenOf<Props>
): EmbedElementconst preview = h(
Container,
{ accentColor: 0xf8f6e8 },
h(
Section,
{ accessory: h(LinkButton, { url: page.url, label: 'Read' }) },
h(TextDisplay, null, `# ${page.title}`)
)
);Props
Props