Files
bigcapital/packages/webapp/src/components/Card/index.tsx
2025-11-02 16:43:47 +02:00

43 lines
830 B
TypeScript

import React from 'react';
import styled from 'styled-components';
interface CardProps {
className?: string;
style?: React.CSSProperties;
children?: React.ReactNode;
}
export function Card({ className, style, children }: CardProps) {
return (
<CardRoot className={className} style={style}>
{children}
</CardRoot>
);
}
const CardRoot = styled.div`
padding: 15px;
margin: 15px;
background: var(--color-card-background);
border: 1px solid var(--color-card-border);
`;
export const CardFooterActions = styled.div`
--x-color-border: #e0e7ea;
.bp4-dark & {
--x-color-border: rgba(255, 255, 255, 0.15);
}
padding-top: 16px;
border-top: 1px solid var(--x-color-border);
margin-top: 30px;
.bp4-button {
min-width: 70px;
+ .bp4-button {
margin-left: 10px;
}
}
`;