-
|
hello, awesome library. One thing I'm wondering would there be any way to apply default settings for all icons? |
Beta Was this translation helpful? Give feedback.
Replies: 3 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.
-
|
react-loading-skeleton has something called <IconTheme size={18} stroke={1.25}>
<IconPlus />
<IconMinus />
</IconTheme> |
Beta Was this translation helpful? Give feedback.
-
|
For anyone coming across this from google, you can override the default with a global css selector: |
Beta Was this translation helpful? Give feedback.
For anyone coming across this from google, you can override the default with a global css selector: