Security News
GitHub Removes Malicious Pull Requests Targeting Open Source Repositories
GitHub removed 27 malicious pull requests attempting to inject harmful code across multiple open source repositories, in another round of low-effort attacks.
@leafygreen-ui/icon-button
Advanced tools
yarn add @leafygreen-ui/icon-button
npm install @leafygreen-ui/icon-button
import IconButton from '@leafygreen-ui/icon-button';
<IconButton variant="light" ariaLabel="Ellipsis">
<Icon glyph="Ellipsis" />
</IconButton>;
Output HTML
<button aria-disabled="false" class="leafygreen-ui-194rp0y" aria-label="Ellipsis>
<span class="leafygreen-ui-1rvdyoi">
<svg width="16px" height="16px" viewBox="0 0 16 16" version="1.1">
<title>Ellipsis</title>
<g
id="Ellipsis-Copy"
stroke="none"
stroke-width="1"
fill="none"
fill-rule="evenodd"
>
<path fill="#89989B"></path>
</g>
</svg>
</span>
</button>
Prop | Type | Description | Default |
---|---|---|---|
variant | 'dark' or 'light' | Sets the style variant of the button. | 'light' |
onClick | function | The event handler function for the 'onclick' event. Receives the associated event object as the first argument. | |
disabled | boolean | Disables the <IconButton /> | false |
href | string | If a href is supplied, the component renders inside of an a tag instead of inside of a button tag. | |
className | string | Adds a className to the class attribute on the container element. | |
children | node | Content rendered inside of the <IconButton /> component | |
ariaLabel | Required string | Value passed to aria-label attribute to ensure component's accessibility |
Any other properties will be spread on the container element.
FAQs
LeafyGreen UI Kit Icon Buttons
We found that @leafygreen-ui/icon-button 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
GitHub removed 27 malicious pull requests attempting to inject harmful code across multiple open source repositories, in another round of low-effort attacks.
Security News
RubyGems.org has added a new "maintainer" role that allows for publishing new versions of gems. This new permission type is aimed at improving security for gem owners and the service overall.
Security News
Node.js will be enforcing stricter semver-major PR policies a month before major releases to enhance stability and ensure reliable release candidates.