MDK Logo

ChartExpandAction

Expand / collapse toggle rendered in a dashboard chart card's header. Swaps between a maximize and a minimize glyph based on `isExpanded`.

Expand / collapse toggle rendered in a dashboard chart card's header. Swaps between a maximize and a minimize glyph based on isExpanded.

import { ChartExpandAction } from "@tetherto/mdk-react-devkit";
PropStatusTypeDefaultDescription
isExpandedRequiredbooleanWhether the parent chart is currently expanded to full width.
onToggleOptionalVoidFunction | undefinedToggles the expanded state.