The SearchBar component can be used to search for assets globally or in the current folder, respectively.
This component extends React.ComponentPropsWithoutRef<"input">, meaning it accepts all native input element props.
asChildType: boolean
locationWhere to search for assets.
"current" searches in the current folder only.
"global" searches globally (recommended).
Type: "current" | "global"
SearchBar must be used inside a Root component.
You can specify either a minLength or minprop, to control when a new fetch request should be triggered.