This commit is contained in:
tmshv committed 2022-10-12 15:52:27 +06:00
1 parent f899f75780
commit 73566d3aca
10 files changed
+92 -51

No files matched your search

+5 -1
View File
@@ -5,14 +5,18 @@ import { Box } from "../Box"
export type PanelProps = {
children?: React.ReactNode
style?: React.CSSProperties
ghost?: boolean
}
export const Panel: React.FC<PanelProps> = ({
style,
children,
ghost = false,
}) => {
const variant = ghost ? s.ghost : s.default
return (
<Box vertical align={false} className={`${s.panel} ${s.default}`} style={style}>
<Box vertical align={false} className={`${s.panel} ${variant}`} style={style}>
{children}
</Box>
)
+5 -1
View File
@@ -1,8 +1,12 @@
.panel {
padding: var(--size-m);
border-radius: var(--radius);
}
.default {
padding: var(--size-m);
background-color: white;
}
.ghost {
background-color: none;
}