Skip to content

GridProviderProps

Props for the GridProvider component.

PropertyTypeDescription
icons?Partial<GridIcons>Icon overrides to provide to all descendant grids. Optional - only specify if you want to customize icons.
defaults?TypeDefaultsMapType-level default renderers and editors. Optional - only specify if you want custom type defaults.
childrenReactNode
icons={{
expand: '',
collapse: '',
sortAsc: '',
sortDesc: '',
}}

defaults={{
country: {
renderer: (ctx) => <CountryBadge value={ctx.value} />,
editor: (ctx) => <CountrySelect value={ctx.value} onCommit={ctx.commit} />
},
date: {
renderer: (ctx) => formatDate(ctx.value),
}
}}

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