uikit/dist/remote-ui-segmented-selector.d.ts
Mohamadzadeh 9709e96ea1
All checks were successful
Build and Deploy Next.js + Nginx Docker Image / build-and-deploy (push) Successful in 51s
Build and Deploy Next.js + Nginx Docker Image / deploy (push) Successful in 7s
remote-ui-segmented-selector
2026-10-19 17:27:38 +03:30

38 lines
1.2 KiB
TypeScript

import type { CSSProperties, ElementType, ReactElement, ReactNode } from "react";
export type SegmentedSelectorItem<Value = string | number> = {
value: Value;
title?: string;
label?: string;
icon?: ReactNode | ElementType;
tooltip?: string;
isDisabled?: boolean;
};
export type RemoteSegmentedSelectorProps<Value = string | number> = {
items?: SegmentedSelectorItem<Value>[];
mode?: "icon" | "text";
value?: Value;
onChange?: (value: Value) => void;
isDisabled?: boolean;
compact?: boolean;
/** Allows wrapping an option with a React element. Parent context is not inherited by the remote React root. */
renderItem?: (element: ReactElement, item: SegmentedSelectorItem<Value>, index: number) => ReactNode;
defaultValue?: Value;
ariaLabel?: string;
className?: string;
dir?: "rtl" | "ltr" | "auto";
style?: CSSProperties;
w?: string | number;
h?: string | number;
minW?: string | number;
maxW?: string | number;
minH?: string | number;
maxH?: string | number;
bg?: string;
gap?: string | number;
};
export declare function SegmentedSelector<Value = string | number>(props: RemoteSegmentedSelectorProps<Value>): any;
export default SegmentedSelector;