Socket
Book a DemoInstallSign in
Socket

@pagedotapp/page-button

Package Overview
Dependencies
Maintainers
2
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@pagedotapp/page-button

A simple, reusable button component

0.0.0-alpha.7
alpha
latest
Source
npmnpm
Version published
Weekly downloads
0
Maintainers
2
Weekly downloads
 
Created
Source

@pagedotapp/page-button

A versatile button component with multiple variants, sizes, animations, and responsive design support.

Installation

npm install @pagedotapp/page-button

Usage

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>
	)
}

Props

PropTypeDefaultDescription
childrenReactNode-Button content (required)
variantResponsiveValue<'primary' | 'secondary' | 'outline' | 'ghost' | 'danger' | 'success'>'primary'Visual style
sizeResponsiveValue<'xs' | 'sm' | 'md' | 'lg' | 'xl'>'md'Button size
loadingbooleanfalseShow loading spinner
disabledbooleanfalseDisable button
fullWidthResponsiveValue<boolean>falseMake button full width
iconBeforeReactNode-Icon before text
iconAfterReactNode-Icon after text
roundedResponsiveValue<'none' | 'sm' | 'md' | 'lg' | 'full'>'md'Border radius
shadowResponsiveValue<'none' | 'sm' | 'md' | 'lg' | 'xl'>'none'Shadow effect
animation'none' | 'pulse' | 'bounce' | 'scale''none'Hover animation
loadingTextstring-Custom loading text
classNamestring-Additional CSS classes
styleCSSProperties-Inline styles

Responsive Values

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>

Styling

This component uses CSS modules for styling. The styles are injected automatically when you use the component.

Dependencies

Peer Dependencies

  • React ^18.3.1
  • React DOM ^18.3.1

License

MIT © PageStudio

Keywords

react

FAQs

Package last updated on 05 Sep 2025

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.