You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
consul/website/components/side-by-side/index.tsx

22 lines
550 B

import { ReactNode } from 'react'
import classNames from 'classnames'
import s from './style.module.css'
interface SideBySideProps {
left: ReactNode
right: ReactNode
}
export default function SideBySide({ left, right }: SideBySideProps) {
return (
<div className={s.sideBySide}>
<div className={classNames(s.sideWrapper, s.leftSide)}>
<div className={s.side}>{left}</div>
</div>
<div className={classNames(s.sideWrapper, s.rightSide)}>
<div className={s.side}>{right}</div>
</div>
</div>
)
}