UNPKG

@sitecore/sc-contenthub-blok

Version:

A UI library for [Sitecore Content Hub](https://doc.sitecore.com/ch/).

10 lines (9 loc) 1.02 kB
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, }: BlokButtonSelectProps<T, K>): Nullable<ReactElement>; export { BlokButtonSelect };