click-ui
click-ui copied to clipboard
Adding "thin" icon variants for <Icon /> component
This PR introduces a new weight property to the <Icon /> component, allowing you to choose between different icon weights. The available values are:
-
default(Figma token path:click.image.borderWidth.default) -
thin(Figma token path:click.image.borderWidth.thin)
Internally, the weight property is applied with CSS by targeting SVG elements with a stroke width of 1.5. This approach is similar to how the color and stroke properties are implemented, but it specifically targets a stroke width which is safe to change.
Example usage:
<Icon name="activity" weight="thin" />
The latest updates on your projects. Learn more about Vercel for Git ↗︎
| Name | Status | Preview | Comments | Updated (UTC) |
|---|---|---|---|---|
| click-ui | ✅ Ready (Inspect) | Visit Preview | 💬 Add feedback | Apr 8, 2025 4:44pm |