gravity-icons-solid
v0.1.0
Published
Gravity UI icons as SolidJS components
Maintainers
Readme
gravity-icons-solid
Unofficial port of Gravity UI icons as SolidJS components. Every
icon from @gravity-ui/icons is exported as a named ESM component.
import { Cloud } from "gravity-icons-solid"
<Cloud />
<Cloud class="text-muted" width={24} height={24} />Icons render as inline <svg> elements sized 16×16 with currentColor fill;
any ComponentProps<"svg"> prop is spread onto the root element. The package
is side-effect free, so bundlers tree-shake unused icons.
Development
Components are generated from the @gravity-ui/icons SVGs into src/icons/
(gitignored) by bun run generate, which build, test, and typecheck
run automatically. To pick up new upstream icons, bump the exact
@gravity-ui/icons pin and rebuild.
