Skip to content

Drawer

A sheet is basically a burger menu. Composed of an a-blur.

Terminal window
npx @sv/components drawer

Example



/* @jsxImportSource vue */
import { ref, defineComponent } from "vue";
import { Drawer } from "@components/src/vue/Drawer";
import { paragraph } from "txtgen";
export const DrawerDemo = defineComponent(() => {
const text = ref("");
const next = () => {
text.value = paragraph(1 + Math.random() * 5);
};
next();
return () => (
<Drawer>
<div class="px-6 pt-4">
<p>{text.value}</p>
</div>
</Drawer>
);
});