@sitecore/sc-contenthub-blok
Version:
A UI library for [Sitecore Content Hub](https://doc.sitecore.com/ch/).
10 lines • 1.09 kB
TypeScript
import { ReactElement } from "react";
import { Nullable } from "../../Foundations/utils";
import { type BlokButtonProps } from "../BlokButton/BlokButton";
import { BlokSelectProps } from "../BlokSelect/BlokSelect";
import { PopoverOrigin } from "../CoreComponents";
export declare const getPopoverOrigin: (element: Nullable<HTMLElement>, type: "anchor" | "transform") => PopoverOrigin;
export type BlokButtonSelectProps<T, K> = Omit<BlokSelectProps<T, K>, "isFullWidth" | "openMenuByDefault"> & Pick<BlokButtonProps, "colorScheme" | "variant" | "size">;
declare function BlokButtonSelect<T = string, K = T>({ id, options, onChange: onChange_, value, labelMapper, valueMapper, returnValue, placeholder, emptyValueSelectable, className, isReadOnly, searchBoxMinAmountOfItems, showIconAndText, hideItemIcons, maxHeight, itemsToDisable, showEmptyDropdown, noneLabel, noResultsText, variant, colorScheme, size, clearMessage, searchMessage, isLoading, loadingText, }: BlokButtonSelectProps<T, K>): Nullable<ReactElement>;
export { BlokButtonSelect };
//# sourceMappingURL=BlokButtonSelect.d.ts.map