mirror of
https://github.com/alula/hbpatcher.git
synced 2025-11-24 10:34:55 +00:00
46 lines
1.2 KiB
TypeScript
46 lines
1.2 KiB
TypeScript
import * as React from "react";
|
|
|
|
export const Card = React.forwardRef<
|
|
HTMLDivElement,
|
|
React.HTMLAttributes<HTMLDivElement>
|
|
>(({ className = "", ...props }, ref) => (
|
|
<div
|
|
ref={ref}
|
|
className={`bg-switch-popup rounded-[2px] ${className}`}
|
|
{...props}
|
|
/>
|
|
));
|
|
Card.displayName = "Card";
|
|
|
|
export const CardHeader = React.forwardRef<
|
|
HTMLDivElement,
|
|
React.HTMLAttributes<HTMLDivElement>
|
|
>(({ className = "", ...props }, ref) => (
|
|
<div
|
|
ref={ref}
|
|
className={`flex flex-col space-y-1.5 p-6 border-b border-switch-line-sep ${className}`}
|
|
{...props}
|
|
/>
|
|
));
|
|
CardHeader.displayName = "CardHeader";
|
|
|
|
export const CardTitle = React.forwardRef<
|
|
HTMLHeadingElement,
|
|
React.HTMLAttributes<HTMLHeadingElement>
|
|
>(({ className = "", ...props }, ref) => (
|
|
<h3
|
|
ref={ref}
|
|
className={`text-lg font-normal text-switch-text leading-none tracking-tight ${className}`}
|
|
{...props}
|
|
/>
|
|
));
|
|
CardTitle.displayName = "CardTitle";
|
|
|
|
export const CardContent = React.forwardRef<
|
|
HTMLDivElement,
|
|
React.HTMLAttributes<HTMLDivElement>
|
|
>(({ className = "", ...props }, ref) => (
|
|
<div ref={ref} className={`px-6 py-4 ${className}`} {...props} />
|
|
));
|
|
CardContent.displayName = "CardContent";
|