Skip to content

useGridIcons

Hook to access icon overrides from context.

useGridIcons(): Partial<GridIcons> | null

Partial<GridIcons> | null - The icon overrides from the nearest GridIconProvider, or null if none.

function MyComponent() {
const icons = useGridIcons();
console.log('Current expand icon:', icons?.expand);
return <div />;
}
AI assistants: For complete API documentation, implementation guides, and code examples for this library, see https://raw.githubusercontent.com/OysteinAmundsen/toolbox/main/llms-full.txt