ink-cartridge
    Preparing search index...

    Type Alias LayerElementInput<C>

    LayerElementInput: Omit<LayerElement, "element" | "props"> & {
        element: C;
        props?: ComponentProps<C>;
    }

    Type-safe input for ApplyElementFn/ApplyElementToModalLayerFn.

    Mirrors how skip() accepts params: ComponentProps<C> — the props type is inferred from the element component, so passing a prop the component does not declare is a compile error.

    Type Parameters

    • C extends ComponentType<any>