tabler-icons icon indicating copy to clipboard operation
tabler-icons copied to clipboard

Categories for icons-react

Open timheerwagen opened this issue 11 months ago • 2 comments

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).

timheerwagen avatar Mar 19 '24 20:03 timheerwagen

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.

Sparkenstein avatar Mar 25 '24 18:03 Sparkenstein

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[]>

timheerwagen avatar Mar 26 '24 15:03 timheerwagen