Skip to content

Type Alias: CustomToolbarItem ​

ts
type CustomToolbarItem = ToolbarItemBase & object & 
  | {
  icon: ToolbarIconName;
}
  | {
  text: string;
};

A custom (app-defined) item. It has no built-in behavior (tapping it only fires onToolbarAction({ id })), so it must render something: at least one of icon or text is required at compile time.

Type Declaration ​

NameType
idstring

Released under the MIT License.