add initial contrast theme
This commit is contained in:
1 parent
c4e13e8e1b
commit
3fa99b28de
15 files changed
+168
-20
No files matched your search
@@ -0,0 +1,19 @@
|
||||
import s from "./panel.module.css"
|
||||
|
||||
import { Box } from "../Box"
|
||||
|
||||
export type PanelProps = {
|
||||
children?: React.ReactNode
|
||||
style?: React.CSSProperties
|
||||
}
|
||||
|
||||
export const Panel: React.FC<PanelProps> = ({
|
||||
style,
|
||||
children,
|
||||
}) => {
|
||||
return (
|
||||
<Box vertical align={false} className={`${s.panel} ${s.default}`} style={style}>
|
||||
{children}
|
||||
</Box>
|
||||
)
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
.panel {
|
||||
padding: var(--size-m);
|
||||
border-radius: var(--radius);
|
||||
}
|
||||
|
||||
.default {
|
||||
background-color: white;
|
||||
}
|
||||
Reference in new issue
Block a user