Skip to content

SigNoz is an open-source, OpenTelemetry-native observability platform for your team and their AI agents. Get logs, metrics, and traces in one tool with features like APM, distributed tracing, log management, infra monitoring, etc. Combined with SigNoz MCP and a native AI teammate (in SigNoz Cloud) it helps you build more resilient apps.

943 B
Raw Blame
import { ReactNode } from 'react';
import cx from 'classnames';

import './Card.styles.scss';

type CardProps = {
	children: ReactNode;
	className?: string;
	size?: 'small' | 'medium' | 'large';
};

function Card({ children, className, size }: CardProps): JSX.Element {
	return <div className={cx('periscope-card', className, size)}>{children}</div>;
}

function CardHeader({ children }: { children: ReactNode }): JSX.Element {
	return <div className="periscope-card-header">{children}</div>;
}

function CardContent({ children }: { children: ReactNode }): JSX.Element {
	return <div className="periscope-card-content">{children}</div>;
}

function CardFooter({ children }: { children: ReactNode }): JSX.Element {
	return <div className="periscope-card-footer">{children}</div>;
}

Card.Header = CardHeader;
Card.Content = CardContent;
Card.Footer = CardFooter;

Card.defaultProps = {
	className: '',
	size: 'medium',
};

export default Card;