Skip to components
DEVELOPER REFERENCE · v4.0.0

Legend API

Props, callbacks and methods. Select an underlined type to explore its fields, allowed values and callback arguments.

Legend4 props0 callbacks0 methods

Props4

Legend props
NameTypeDescription
labelRequiredstringLabel content or accessible name for the component, as rendered by this control.
itemsRequired
readonly LegendItem[]Inspect type
Ordered items to render. Each item follows the shape shown in the expanded type.
classNameOptionalstring | undefinedAdditional CSS classes applied to the component root.
itemClassNameOptionalstring | undefinedAdditional CSS classes for the item part of the component.

Events and callbacks0

No component-specific events or callbacks.

Methods0

No component-specific imperative methods. Use props and callbacks to control this component.