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

    Type Alias WidgetOverrides<T>

    WidgetOverrides: {
        [K in keyof T & string as `props${K}`]?: Omit<T[K], "children">
    }

    The overrides prop of a widget part that renders elements of its own: a props<Element> entry for each, such as propsTitle or propsBody, typed from that element's own props so an upgrade that changes them fails the build. The content stays the part's, so no entry takes children.

    Type Parameters

    • T extends Record<string, object>
    type HelpDialogPopupOverrides = WidgetOverrides<{ Title: Dialog.Title.Props; Body: ComponentProps<'div'> }>
    // { propsTitle?: Omit<Dialog.Title.Props, 'children'>; propsBody?: Omit<ComponentProps<'div'>, 'children'> }