Skip to content

GridTypeProviderProps

Props for the GridTypeProvider component.

PropertyTypeDescription
defaultsTypeDefaultsMapType defaults to provide to all descendant grids.
childrenReactNode
const typeDefaults = {
country: {
renderer: (ctx) => <CountryBadge value={ctx.value} />,
editor: (ctx) => <CountrySelect value={ctx.value} onCommit={ctx.commit} />
},
status: {
renderer: (ctx) => <StatusBadge value={ctx.value} />
}
};
<GridTypeProvider defaults={typeDefaults}>
<App />
</GridTypeProvider>

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