Replies: 2 comments
-
If you mean a config, I don't think so, but you can create a file where you'll be exporting your default props and share them across your app, for example: /** styles/index.ts */
export const iconProps = {
size: 18,
stroke: 1.25
} /** Component.tsx */
import { IconPlus } from "@tabler/icons"
import { iconProps } from "styles"
export default Component = () => {
return <IconPlus {...iconProps} />
} |
Beta Was this translation helpful? Give feedback.
0 replies
-
react-loading-skeleton has something called <IconTheme size={18} stroke={1.25}>
<IconPlus />
<IconMinus />
</IconTheme> |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
hello, awesome library. One thing I'm wondering would there be any way to apply default settings for all icons?
for example, i'd wish every icons to have
stroke-width
of 1.25 so I don't have to do<IconPlus stroke={1.25} />
for every imported icons.Beta Was this translation helpful? Give feedback.
All reactions