Practic BUI (Base UI) - v1.0.0
    Preparing search index...

    Function widgetOverrideNoChildren

    • widgetOverride for an element whose content the part fills itself, such as a title given its text as children: typed from the element's own props, with children left out of both, so call sites name the props type once (widgetOverrideNoChildren<Dialog.Title.Props>(…)) rather than widgetOverride<Omit<…, 'children'>>(…).

      Type Parameters

      • P extends object

      Parameters

      • own: Omit<P, "children">

        The props the part gives the element, without its content.

      • Optionaloverride: Omit<Partial<P>, "children">

        The caller's entry from overrides, if any.

      Returns Omit<P, "children">

      The props to spread on the element, beside the content the part gives it.