@univerjs/ui v0.5.4


Type Alias: ICustomLabelProps<T>

type ICustomLabelProps<T> = {
  title: React.ReactNode;
  value: string | number;
  value$: Observable<T>;
  onChange: void;
} & Pick<IMenuSelectorItem<unknown>, "label" | "icon">;

Defined in: submodules/univer/packages/ui/src/components/custom-label/CustomLabel.tsx:25

Type declaration

NameTypeDefined in
title?React.ReactNodesubmodules/univer/packages/ui/src/components/custom-label/CustomLabel.tsx:32
value?string | numbersubmodules/univer/packages/ui/src/components/custom-label/CustomLabel.tsx:26
value$?Observable<T>submodules/univer/packages/ui/src/components/custom-label/CustomLabel.tsx:28
onChange()?voidsubmodules/univer/packages/ui/src/components/custom-label/CustomLabel.tsx:30

Type Parameters

Type ParameterDefault type
Tundefined