tabler-icons
tabler-icons copied to clipboard
Categories for icons-react
In addition to iconsList
it would be nice to be able to import categories into react like on https://tabler.io/icons.
I also could not figure out how to use iconsList
correctly. My workaround was to convert the icon names to Pascalcase and import them dynamically with dynamic
from next.js
.
My goal is to create an icon picker for my CMS, similar to https://tabler.io/icons, to select an icon, store it in my database and display the icon later on the frontend (dynamically).
I was just looking for this, I am glad I am not the only one,
something like
import { SomeBrandIcon } from "@tabler-icons/react/brand"
would be lovely.
I would prefer a list of icons for each category, because one place to import an icon is enough in my opinion.
import { categoryList } from "@tabler-icons/react"
categoryList could have following type:
type CategoryList = Record<string, string[]>