ResourceActions

The actions registered for this resource kind.

import { ResourceActions } from '@textui/documents';

<ResourceActions resource={null} slot="context" onRun={(id) => console.log(id)} />

Props

| Prop | Type | Default | | | — | — | — | — | | resource | Resource \| null | required | | | slot | string | 'context' | | | onRun | (actionId: string) => void | | |

Plus everything on BoxProps.

Reads the action registry rather than a list you pass, so an extension adding an action to a kind appears here without anything being rewired.

slot selects where the actions were registered to appear - context for a menu, other slots for a toolbar or a header.

See also


Back to top

MIT licensed. Pre-1.0 - the surface is still moving.