Introducing Socket Firewall: Free, Proactive Protection for Your Software Supply Chain.Learn More
Socket
Book a DemoInstallSign in
Socket

@pagedotapp/page-data-card

Package Overview
Dependencies
Maintainers
0
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@pagedotapp/page-data-card

PageDataCard - A reusable React component

latest
Source
npmnpm
Version
0.0.0-alpha.14
Version published
Maintainers
0
Created
Source

PageDataCard

A reusable datacard component for React applications.

Installation

npm install @pagedotapp/page-data-card

Usage

import { PageDataCard } from "@pagedotapp/page-data-card"

function App() {
	return (
		<PageDataCard variant="primary" size="medium">
			PageDataCard Content
		</PageDataCard>
	)
}

Props

PropTypeDefaultDescription
childrenReact.ReactNode-Component children
classNamestring''Additional CSS class name
variant'default' | 'primary' | 'secondary''default'Component variant
size'small' | 'medium' | 'large''medium'Component size
disabledbooleanfalseDisabled state

Examples

Variants

<PageDataCard variant="default">Default</PageDataCard>
<PageDataCard variant="primary">Primary</PageDataCard>
<PageDataCard variant="secondary">Secondary</PageDataCard>

Sizes

<PageDataCard size="small">Small</PageDataCard>
<PageDataCard size="medium">Medium</PageDataCard>
<PageDataCard size="large">Large</PageDataCard>

States

<PageDataCard disabled>Disabled</PageDataCard>

Styling

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.

Development

To run the component in development mode:

npm run storybook

To run tests:

npm run test

To lint the component:

npm run lint

Keywords

react

FAQs

Package last updated on 29 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