
Product
Introducing Webhook Events for Alert Changes
Add real-time Socket webhook events to your workflows to automatically receive software supply chain alert changes in real time.
@pagedotapp/page-icon-button
Advanced tools
A reusable iconbutton component for React applications.
npm install @pagedotapp/page-icon-button
import { PageIconButton } from "@pagedotapp/page-icon-button"
function App() {
return (
<PageIconButton variant="primary" size="medium">
PageIconButton Content
</PageIconButton>
)
}
| Prop | Type | Default | Description |
|---|---|---|---|
children | React.ReactNode | - | Component children |
className | string | '' | Additional CSS class name |
variant | 'default' | 'primary' | 'secondary' | 'default' | Component variant |
size | 'small' | 'medium' | 'large' | 'medium' | Component size |
disabled | boolean | false | Disabled state |
<PageIconButton variant="default">Default</PageIconButton>
<PageIconButton variant="primary">Primary</PageIconButton>
<PageIconButton variant="secondary">Secondary</PageIconButton>
<PageIconButton size="small">Small</PageIconButton>
<PageIconButton size="medium">Medium</PageIconButton>
<PageIconButton size="large">Large</PageIconButton>
<PageIconButton disabled>Disabled</PageIconButton>
The component uses CSS modules for styling. You can override styles by passing a custom className or by targeting the component's CSS classes in your global styles.
To run the component in development mode:
npm run storybook
To run tests:
npm run test
To build the component:
npm run build
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.

Product
Add real-time Socket webhook events to your workflows to automatically receive software supply chain alert changes in real time.

Product
Socket now scans OpenVSX extensions, giving teams early detection of risky behaviors, hidden capabilities, and supply chain threats in developer tools.

Product
Bringing supply chain security to the next generation of JavaScript package managers