✨Feat: 增加Surface容器组件
This commit is contained in:
+12
-6
@@ -1,11 +1,17 @@
|
|||||||
import Card from "./components/Card"
|
import Card from "./components/Card";
|
||||||
|
import { Surface } from "@heroui/react";
|
||||||
|
|
||||||
function App() {
|
function App() {
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<><Card /></>
|
<>
|
||||||
)
|
<Surface
|
||||||
|
className="flex min-w-[320px] flex-col gap-3 rounded-3xl p-6"
|
||||||
|
variant="default"
|
||||||
|
>
|
||||||
|
<Card />
|
||||||
|
</Surface>
|
||||||
|
</>
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
export default App
|
export default App;
|
||||||
|
|||||||
Reference in New Issue
Block a user