|
1
|
import * as React from "react" |
|
2
|
|
|
3
|
import { clx } from "@/utils/clx" |
|
4
|
|
|
5
|
/** |
|
6
|
* This component is based on the `div` element and supports all of its props |
|
7
|
*/ |
|
8
|
const Container = React.forwardRef< |
|
9
|
HTMLDivElement, |
|
10
|
React.ComponentPropsWithoutRef<"div"> |
|
11
|
>(({ className, ...props }, ref) => { |
|
12
|
return ( |
|
13
|
<div |
|
14
|
ref={ref} |
|
15
|
className={clx( |
|
16
|
"shadow-elevation-card-rest bg-ui-bg-base w-full rounded-lg px-6 py-4", |
|
17
|
className |
|
18
|
)} |
|
19
|
{...props} |
|
20
|
/> |
|
21
|
) |
|
22
|
}) |
|
23
|
Container.displayName = "Container" |
|
24
|
|
|
25
|
export { Container } |