Componentes
Drawer
Componente drawer do design system adila.co.
Instalação
bun add @adila-sh/uiUso
import {
Drawer,
DrawerTrigger,
DrawerContent,
DrawerHeader,
DrawerTitle,
DrawerDescription,
DrawerFooter,
DrawerClose,
} from '@adila-sh/ui';
import { Button } from '@adila-sh/ui';
export function Example() {
return (
<Drawer>
<DrawerTrigger render={<Button variant="outline">Abrir Drawer</Button>} />
<DrawerContent>
<DrawerHeader>
<DrawerTitle>Detalhes do plano</DrawerTitle>
<DrawerDescription>Deslize para baixo para fechar.</DrawerDescription>
</DrawerHeader>
<DrawerFooter>
<Button>Confirmar</Button>
<DrawerClose render={<Button variant="outline">Cancelar</Button>} />
</DrawerFooter>
</DrawerContent>
</Drawer>
);
}