@univerjs/ui v0.5.0-beta.1Docs


Type Alias: ICustomLabelProps<T>

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

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

Defined in

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