
Security News
OpenGrep Restores Fingerprinting in JSON and SARIF Outputs
OpenGrep has restored fingerprint and metavariable support in JSON and SARIF outputs, making static analysis more effective for CI/CD security automation.
@0xsquid/ui
Advanced tools
React components library for Squid V2
Install the package:
yarn add @0xsquid/ui
Import styles in your entry point:
// src/main.tsx | src/pages/_app.tsx | etc...
import "@0xsquid/ui/dist/index.css";
Wrap your app with our theme provider <ThemeProvider />
and specify your theme:
import { ThemeProvider, Button } from "@0xsquid/ui";
function App() {
return (
<ThemeProvider theme={yourTheme}>
<Button label="Hello world" variant="primary" size="md" />
</ThemeProvider>
);
}
yarn install
yarn storybook
To build the package using Rollup, run:
yarn build
This command will:
src/styles/compiled-tailwind.css
dist/
foldersrc/styles/compiled-tailwind.css
to dist/index.css
To format and lint the code, run:
yarn format:fix
yarn lint:fix
- src
- index.ts <- barrel file
- components
- index.ts <- barrel file
- buttons
- index.ts <- barrel file
- Button.tsx
- lists
- index.ts <- barrel file
- HistoryItem.tsx
- stories
- buttons
- Button.stories.tsx
- lists
- HistoryItem.stories.tsx
When creating a new component, don't forget to update the barrel file, exporting your component in the index.ts
file in the corresponding component folder. You can also install the AutoBarrel VSCode extension.
In case you need to add images somewhere that need to be included in the final bundle, convert them to base64 instead.
Example:
.my-image {
- background-image: url('my-image.png');
+ background-image: url('data:image/png;base64,iVBORw0....');
}
Or in a React component:
- <img src="my-image.png" />
+ <img src="data:image/png;base64,iVBORw0..." />
FAQs
Squid's UI components
The npm package @0xsquid/ui receives a total of 295 weekly downloads. As such, @0xsquid/ui popularity was classified as not popular.
We found that @0xsquid/ui demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 2 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
OpenGrep has restored fingerprint and metavariable support in JSON and SARIF outputs, making static analysis more effective for CI/CD security automation.
Security News
Security experts warn that recent classification changes obscure the true scope of the NVD backlog as CVE volume hits all-time highs.
Security Fundamentals
Attackers use obfuscation to hide malware in open source packages. Learn how to spot these techniques across npm, PyPI, Maven, and more.