Security News
Weekly Downloads Now Available in npm Package Search Results
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.
React components for Lido Finance projects.
Check out our Storybook at https://ui.lido.fi
useSystemTheme
hook will no longer return light theme as a fallback when system theme was not identified. A check needs to be added after upgrading.
Simply add lido-ui
to your dependencies:
yarn add @lidofinance/lido-ui
Then, import Lido theme provider and wrap your components in _app.js
:
import { ThemeProvider } from '@lidofinance/lido-ui'
function App({ Component }) {
return (
<ThemeProvider>
<Component />
</ThemeProvider>
)
}
Simply import any components and use in your project:
import { Button } from '@lidofinance/lido-ui'
yarn dev
- Start Storybook locally to start developing components.yarn build
- Build all components.yarn test
- Run tests across components.yarn lint
- Run eslint across components.yarn install
yarn build
yarn dev
packages
dir.package.json
, check other packages to find out what you can copy from their package.json
files.name
field in the package.json
.README.md
and LICENSE.txt
. You can copy tsconfig.json
and .npmignore
from other packages.src
directory, where the package's code will be placed.yarn combine
It triggers a script, which updates the main lido-ui
package. The script finds all packages, including the new one,
and adds them to dependencies of lido-ui
and to exports in its index file.
yarn install && yarn build
Packages are automatically published to npm when you push to master. The publication is based on semantic-release and @qiwi/multi-semantic-release.
For correct version detection, please follow the conventional commit format.
To include a local version of modified lido in your project, run yarn link
in packages/lido
and run yarn link lido
in project you want to use it in. Make sure to run yarn unlink lido
after it's no longer needed.
FAQs
> React components for Lido Finance projects.
The npm package anton-ui receives a total of 12 weekly downloads. As such, anton-ui popularity was classified as not popular.
We found that anton-ui demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.
Security News
A Stanford study reveals 9.5% of engineers contribute almost nothing, costing tech $90B annually, with remote work fueling the rise of "ghost engineers."
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.