
Security News
Deno 2.2 Improves Dependency Management and Expands Node.js Compatibility
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
@lendi-ui/icon
Advanced tools
Add the SVG into src/icons. Be thoughtful with naming, as this will determine the name of the component. For example, the file computer-bank
will create a SVG component called computerBank
(note that the kebab-case filename will become a camelCase component).
To add a new alias, navigate to the ./build/alias.json file and add the key as the original file name (in pascal case) and give it an array with all the alias' to add.
When this package is built, an equivalent react component will be created in src/icons-compiled.
yarn add @lendi-ui/icon
import { Lock } from '@lendi-ui/icon';
<Lock color="secondary.500" />;
or, to take advantage of multiple entrypoints:
import Lock from '@lendi-ui/icon/Lock';
<Lock color="secondary.500" />;
Note: You must use the above syntax across your entire codebase to see any bundle savings from entrypoints
In this case, you will need to add a fillPath
class to the element in the SVG that needs to be recoloured, this can be determined by inspecting the svg in the browser and changing the fill colour until you find the correct element.
<PropTable>
<PropTable.Entry required name="color" type={`string`} description="The Icon color"/>
</PropTable>
FAQs
## Adding a new icon
The npm package @lendi-ui/icon receives a total of 255 weekly downloads. As such, @lendi-ui/icon popularity was classified as not popular.
We found that @lendi-ui/icon demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 32 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
Security News
React's CRA deprecation announcement sparked community criticism over framework recommendations, leading to quick updates acknowledging build tools like Vite as valid alternatives.
Security News
Ransomware payment rates hit an all-time low in 2024 as law enforcement crackdowns, stronger defenses, and shifting policies make attacks riskier and less profitable.