API Reference
@univerjs
@univerjs/ui
type-aliases
Icustomlabelprops

@univerjs/ui v0.4.2Docs


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
titleReact.ReactNodepackages/ui/src/components/custom-label/CustomLabel.tsx:32 (opens in a new tab)
valuestring | numberpackages/ui/src/components/custom-label/CustomLabel.tsx:26 (opens in a new tab)
value$Observable<T>packages/ui/src/components/custom-label/CustomLabel.tsx:28 (opens in a new tab)
onChangevoidpackages/ui/src/components/custom-label/CustomLabel.tsx:30 (opens in a new tab)

Type Parameters

Type ParameterDefault type
Tundefined

Defined in

packages/ui/src/components/custom-label/CustomLabel.tsx:25 (opens in a new tab)


Copyright © 2021-2024 DreamNum Co,Ltd. All Rights Reserved.