
Research
/Security News
Weaponizing Discord for Command and Control Across npm, PyPI, and RubyGems.org
Socket researchers uncover how threat actors weaponize Discord across the npm, PyPI, and RubyGems ecosystems to exfiltrate sensitive data.
@pagedotapp/page-button
Advanced tools
A versatile button component with multiple variants, sizes, animations, and responsive design support.
npm install @pagedotapp/page-button
import { PageButton } from "@pagedotapp/page-button"
function App() {
return (
<PageButton
variant="primary"
size="md"
rounded="full"
shadow="md"
animation="scale"
onClick={handleClick}
>
Click me
</PageButton>
)
}
Prop | Type | Default | Description |
---|---|---|---|
children | ReactNode | - | Button content (required) |
variant | ResponsiveValue<'primary' | 'secondary' | 'outline' | 'ghost' | 'danger' | 'success'> | 'primary' | Visual style |
size | ResponsiveValue<'xs' | 'sm' | 'md' | 'lg' | 'xl'> | 'md' | Button size |
loading | boolean | false | Show loading spinner |
disabled | boolean | false | Disable button |
fullWidth | ResponsiveValue<boolean> | false | Make button full width |
iconBefore | ReactNode | - | Icon before text |
iconAfter | ReactNode | - | Icon after text |
rounded | ResponsiveValue<'none' | 'sm' | 'md' | 'lg' | 'full'> | 'md' | Border radius |
shadow | ResponsiveValue<'none' | 'sm' | 'md' | 'lg' | 'xl'> | 'none' | Shadow effect |
animation | 'none' | 'pulse' | 'bounce' | 'scale' | 'none' | Hover animation |
loadingText | string | - | Custom loading text |
className | string | - | Additional CSS classes |
style | CSSProperties | - | Inline styles |
Many props support responsive values for adaptive designs:
<PageButton
size={{ base: "sm", md: "md", lg: "lg" }}
fullWidth={{ base: true, md: false }}
rounded={{ base: "md", lg: "full" }}
>
Responsive Button
</PageButton>
This component uses CSS modules for styling. The styles are injected automatically when you use the component.
MIT © PageStudio
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.
Research
/Security News
Socket researchers uncover how threat actors weaponize Discord across the npm, PyPI, and RubyGems ecosystems to exfiltrate sensitive data.
Security News
Socket now integrates with Bun 1.3’s Security Scanner API to block risky packages at install time and enforce your organization’s policies in local dev and CI.
Research
The Socket Threat Research Team is tracking weekly intrusions into the npm registry that follow a repeatable adversarial playbook used by North Korean state-sponsored actors.