usePluginArgs
usePluginArgs<
TArgs>():TArgs
Defined in: Context.tsx:366
Hook to access the plugin configuration args from within a plugin component.
This returns the args passed to Plugin.configure({ ... }).
Use this hook inside your plugin component to access configuration.
Type Parameters
Section titled “Type Parameters”TArgs
The type of the plugin args
Returns
Section titled “Returns”TArgs
Example
Section titled “Example”interface MyPluginConfig { columns: string[]; title?: string;}
function MyPluginPanel() { const args = usePluginArgs<MyPluginConfig>(); // args.columns, args.title are available return <div>{args.title}</div>;}