@antadesign/anta
    Preparing search index...

    Interface SelectFacetCustomContext<V>Unreviewed

    Context handed to a custom facet's render.

    interface SelectFacetCustomContext<V> {
        value: V | undefined;
        onChange: (next: V | undefined) => void;
        close: () => void;
    }

    Type Parameters

    • V
    Index
    value: V | undefined

    The facet's current value (undefined when unset).

    onChange: (next: V | undefined) => void

    Apply a new value for this facet — pass undefined to clear it.

    close: () => void

    Close the whole filter menu (e.g. after applying from a custom editor).