You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
bitwarden-clients/libs/assets
Will Martin 5dc49f21d2
[CL-82] rename `bit-icon` to `bit-svg`; create new `bit-icon` component for font icons (#18584)
4 weeks ago
..
src/svg [CL-82] rename `bit-icon` to `bit-svg`; create new `bit-icon` component for font icons (#18584) 4 weeks ago
README.md [CL-82] rename `bit-icon` to `bit-svg`; create new `bit-icon` component for font icons (#18584) 4 weeks ago
eslint.config.mjs
jest.config.js
package.json fix(basic-lib generator): Ensure all project.json files have a rootDir value (#16384) 5 months ago
project.json fix(basic-lib generator): Ensure all project.json files have a rootDir value (#16384) 5 months ago
tsconfig.eslint.json
tsconfig.json
tsconfig.lib.json
tsconfig.spec.json

README.md

Assets

Owned by: ui-foundation

This lib contains assets used by the Bitwarden clients. Unused assets are tree-shaken from client bundles. This means that all exports from this library must not have any side effects.

Usage

SVGs

SVGs intended to be used with the bit-svg component live in src/svgs. These SVGs are built with the svg function for security reasons. These SVGs can be viewed in our Component Library SVG Story.

When adding a new SVG, follow the instructions in our Component Library: SVG Docs

When importing an SVG in one of the clients: import { ExampleSvg } from "@bitwarden/assets/svg";