Skip to content
Functiondiscord-component-embedv1.0.0

h

Builds an element without JSX. Use it in any file that can't compile this package's JSX, like a Svelte server file. Pass a component, its props, then its children.

h<Props>(
    type: (props: Props) => EmbedNode,
    props: object extends OwnProps<Props>
        ? OwnProps<Props> | null
        : OwnProps<Props>,
    children: ChildrenOf<Props>
): EmbedElement

Props

Props