CKBoxCategoriesConfig
interface
Properties
-
icons : object | undefined
module:ckbox/ckboxconfig~CKBoxCategoriesConfig#icons
This option takes an object with categories and icons that should be used instead of the default ones. Categories can be defined using either their name or id. Icons should be defined as strings containing the SVG images, or as React components.
const ckboxConfig = { categories: { icons: { Images: '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><path ... /></svg>', // Category can be referenced by ID // 'fdf2a647-b67f-4a6c-b692-5ba1dc1ed87b': '<svg...' } } }