
Product
Announcing Socket Fix 2.0
Socket Fix 2.0 brings targeted CVE remediation, smarter upgrade planning, and broader ecosystem support to help developers get to zero alerts.
@pagedotapp/page-card
Advanced tools
A flexible card container component
npm install @pagedotapp/page-card
import { PageCard } from "@pagedotapp/page-card"
function App() {
return (
<PageCard>
<h3>Card Title</h3>
<p>Card content goes here</p>
</PageCard>
)
}
Prop | Type | Default | Description |
---|---|---|---|
children | React.ReactNode | - | Card content |
className | string | "" | Additional CSS class name |
style | React.CSSProperties | - | Inline styles |
See the TypeScript definitions for detailed prop types.
This component uses CSS modules for styling. The styles are injected automatically when you use the component.
You can customize the appearance using the className
prop to add custom CSS classes or the style
prop for inline styles:
// Using className
<PageCard className="custom-card">
Content
</PageCard>
// Using inline styles
<PageCard style={{ backgroundColor: '#f0f8ff', padding: '20px' }}>
Content
</PageCard>
// Combining both
<PageCard
className="custom-card"
style={{ transform: 'scale(1.05)' }}
>
Content
</PageCard>
MIT © PageStudio
FAQs
PageCard - A reusable React component
The npm package @pagedotapp/page-card receives a total of 23 weekly downloads. As such, @pagedotapp/page-card popularity was classified as not popular.
We found that @pagedotapp/page-card demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 2 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.
Product
Socket Fix 2.0 brings targeted CVE remediation, smarter upgrade planning, and broader ecosystem support to help developers get to zero alerts.
Security News
Socket CEO Feross Aboukhadijeh joins Risky Business Weekly to unpack recent npm phishing attacks, their limited impact, and the risks if attackers get smarter.
Product
Socket’s new Tier 1 Reachability filters out up to 80% of irrelevant CVEs, so security teams can focus on the vulnerabilities that matter.