
Security News
Crates.io Users Targeted by Phishing Emails
The Rust Security Response WG is warning of phishing emails from rustfoundation.dev targeting crates.io users.
@wedgekit/button
Advanced tools
The Button
component is a styled HTML button.
import Button from '@wedgekit/button';
const Example = () => {
const [domain, setDomain] = React.useState('primary');
return (
<div>
<Button
domain={domain}
onClick={() => setDomain(domain === 'primary' ? 'secondary' : 'primary')}
>
Click Me
</Button>
</div>
);
};
render(<Example />);
In addition to the props listed below, all native and React HTML attributes will be passed through.
Type: string
Required: ❌
The string label for the button. The label should be descriptive and readable. If children is not used, an aria-label should be added for accessibility.
Type: 'primary' | 'secondary' | 'success' | 'warning' | 'danger' | 'default' | 'white'
Required: ❌
A string denoting the domain of the Button. This defaults to 'default'.
Type: boolean
Required: ❌
Sets the button to fill the full-width of its parent container.
Type: IconTag
Required: ❌
Optional prop to display an icon positioned left of the text. An IconTag
is a snake-cased name of a provided icon. A full list can be found here
Type: string
Required: ❌
A label describing the type of button. If none is provided, the child string will be used for 'aria-label'
Type: boolean
Required: ❌
Indicates button is in a submitting state. Will display a spinner if true.
Type: 'noFill' | ‘neutral’ | 'outline'
Required: ❌
A string denoting the variant style of the Button. This defaults to 'neutral'.
FAQs
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
The Rust Security Response WG is warning of phishing emails from rustfoundation.dev targeting crates.io users.
Product
Socket now lets you customize pull request alert headers, helping security teams share clear guidance right in PRs to speed reviews and reduce back-and-forth.
Product
Socket's Rust support is moving to Beta: all users can scan Cargo projects and generate SBOMs, including Cargo.toml-only crates, with Rust-aware supply chain checks.