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

    Function widgetOverride

    • An element's props with a caller's override applied: the override's props win, while its className adds to the element's own (later Tailwind utilities winning, through cn) and its style adds to the element's own, so a caller tunes an element without losing what makes it work. Elements without either take the override as it is.

      Type Parameters

      • P extends object

      Parameters

      • own: P

        The props the part gives the element.

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

        The caller's entry from overrides, if any.

      Returns P

      The props to spread on the element.