
Security News
PodRocket Podcast: Inside the Recent npm Supply Chain Attacks
Socket CEO Feross Aboukhadijeh discusses the recent npm supply chain attacks on PodRocket, covering novel attack vectors and how developers can protect themselves.
@pagedotapp/page-data-card
Advanced tools
A reusable datacard component for React applications.
npm install @pagedotapp/page-data-card
import { PageDataCard } from "@pagedotapp/page-data-card"
function App() {
return (
<PageDataCard variant="primary" size="medium">
PageDataCard Content
</PageDataCard>
)
}
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 |
<PageDataCard variant="default">Default</PageDataCard>
<PageDataCard variant="primary">Primary</PageDataCard>
<PageDataCard variant="secondary">Secondary</PageDataCard>
<PageDataCard size="small">Small</PageDataCard>
<PageDataCard size="medium">Medium</PageDataCard>
<PageDataCard size="large">Large</PageDataCard>
<PageDataCard disabled>Disabled</PageDataCard>
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 lint the component:
npm run lint
FAQs
PageDataCard - A reusable React component
We found that @pagedotapp/page-data-card 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
Socket CEO Feross Aboukhadijeh discusses the recent npm supply chain attacks on PodRocket, covering novel attack vectors and how developers can protect themselves.
Security News
Maintainers back GitHub’s npm security overhaul but raise concerns about CI/CD workflows, enterprise support, and token management.
Product
Socket Firewall is a free tool that blocks malicious packages at install time, giving developers proactive protection against rising supply chain attacks.