Skip to content

Component <Actions/> ​

Actions(__namedParameters: ActionsProps): ReactElement

Source: Actions.tsx

Component that renders a collection of actions (e.g., as a context menu or a header menu) and handles keyboard shortcuts.

Parameters ​

__namedParameters ​

ActionsProps

Returns ​

ReactElement

Example ​

tsx
<ClickAction
	label="Reload"
	shortcut={["Control", "r"]}
	icon={faArrowsRotate}
	onTrigger={() => {
		reloadViewport();
	}}
/>

Built by Prozilla