Security News
Fluent Assertions Faces Backlash After Abandoning Open Source Licensing
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
@onbeam/icons
Advanced tools
A collection of icons (as React components) from the Beam design system, which can also be used standalone. [Click here](https://beam-packages.vercel.app/?path=/docs/theme-icons--docs) for an overview of all icons.
A collection of icons (as React components) from the Beam design system, which can also be used standalone. Click here for an overview of all icons.
Install the package using your preferred package manager:
npm install @onbeam/icons
# or
yarn add @onbeam/icons
# or
pnpm add @onbeam/icons
To keep all @onbeam
packages updated, you can use the CLI:
npx @onbeam/cli update -d [directory]
Import and use the icons in your project:
import { BeamIcon } from "@onbeam/icons";
const MyComponent = () => {
return (
<div>
<BeamIcon width={16} height={16} />
</div>
);
};
Note: Replace BeamIcon with the name of the icon you want to use.
This package is fully tree-shakable, ensuring that only the icons you import are included in your final bundle, optimizing your app's performance.
Property | Type | Default | Description |
---|---|---|---|
width | number | "24" | Sets the width of the icon. |
height | number | "24" | Sets the height of the icon. |
className | string | undefined | Adds custom CSS classes to the icon element. |
You can customize icons by passing size
or using CSS classes. For advanced customization, consider wrapping the icons in your own components to define default styles or using the Icon
wrapper component from @onbeam/ui
.
import { BeamIcon } from "@onbeam/icons";
const App = () => (
<div>
<BeamIcon width={32} height={32} className="red" />
</div>
);
@onbeam/styled-system
import { BeamIcon } from "@onbeam/icons";
import { css } from "@onbeam/styled-system";
const App = () => (
<div>
<BeamIcon width={32} height={32} className={css({ color: "mono.100" })} />
</div>
);
Icon
wrapper componentimport { BeamIcon } from "@onbeam/icons";
import { Icon } from "@onbeam/ui";
const App = () => (
<div>
<Icon size={32}>
<BeamIcon className={css({ color: "mono.100" })} />
</Icon>
</div>
);
@onbeam
packagesThat's it! Happy coding! 🌈
FAQs
A collection of icons (as React components) from the Beam design system, which can also be used standalone. [Click here](https://beam-packages.vercel.app/?path=/docs/theme-icons--docs) for an overview of all icons.
The npm package @onbeam/icons receives a total of 235 weekly downloads. As such, @onbeam/icons popularity was classified as not popular.
We found that @onbeam/icons demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 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
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
Research
Security News
Socket researchers uncover the risks of a malicious Python package targeting Discord developers.
Security News
The UK is proposing a bold ban on ransomware payments by public entities to disrupt cybercrime, protect critical services, and lead global cybersecurity efforts.