add initial contrast theme
This commit is contained in:
1 parent
c4e13e8e1b
commit
3fa99b28de
15 files changed
+168
-20
No files matched your search
@@ -8,6 +8,7 @@ const cx = classnames.bind(s)
|
||||
export type BoxProps = {
|
||||
as?: keyof HTMLElementTagNameMap
|
||||
children?: React.ReactNode
|
||||
className?: string
|
||||
style?: React.CSSProperties
|
||||
wrap?: boolean
|
||||
align?: boolean
|
||||
@@ -22,10 +23,11 @@ export const Box: React.FC<BoxProps> = ({
|
||||
center = false,
|
||||
align = true,
|
||||
style,
|
||||
className,
|
||||
...props
|
||||
}) => {
|
||||
const newProps = {
|
||||
className: cx(s.box, { vertical, align, center, wrap }),
|
||||
className: cx(s.box, className, { vertical, align, center, wrap }),
|
||||
style,
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user