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

    Function showcaseIsWidgetSelector

    • Decides whether a theme selector styles a widget's components. A selector belongs to the longest matching prefix, so .CheckboxGroup belongs to Checkbox Group rather than Checkbox; :root token blocks belong to every widget.

      Parameters

      • widget: Pick<ShowcaseEntry, "parts">

        Widget whose selectors are wanted.

      • selector: string

        Theme selector.

      • widgets: Pick<ShowcaseEntry, "parts">[] = showcaseList

        Every widget a selector could belong to, which decides the longest prefix; the showcase's own by default, or a list of the caller's own components.

      Returns boolean