A side panel over the page.
Side panel
A side panel over the page, for filters or details on small screens. The header names it; the description is for screen readers.
<script setup>
import { FilterIcon } from '@lucide/vue';
import { Button } from '@aisgroup/design/ui/button';
import { Checkbox } from '@aisgroup/design/ui/checkbox';
import { Field, FieldGroup, FieldLabel, FieldLegend, FieldSet } from '@aisgroup/design/ui/field';
import { Sheet, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetTitle, SheetTrigger } from '@aisgroup/design/ui/sheet';
</script>
<template>
<Sheet>
<SheetTrigger as-child><Button variant="outline"><FilterIcon data-icon="inline-start" />Filters</Button></SheetTrigger>
<SheetContent>
<SheetHeader>
<SheetTitle>Filters</SheetTitle>
<SheetDescription class="sr-only">Show only the images you need.</SheetDescription>
</SheetHeader>
<div class="flex-1 overflow-y-auto px-4">
<FieldSet class="gap-3">
<FieldLegend variant="label">State</FieldLegend>
<FieldGroup class="gap-3">
<Field orientation="horizontal"><Checkbox id="sheet-labeled" :model-value="true" /><FieldLabel for="sheet-labeled" class="font-normal">Labelled</FieldLabel></Field>
<Field orientation="horizontal"><Checkbox id="sheet-unlabeled" /><FieldLabel for="sheet-unlabeled" class="font-normal">Not labelled</FieldLabel></Field>
<Field orientation="horizontal"><Checkbox id="sheet-reviewed" /><FieldLabel for="sheet-reviewed" class="font-normal">Reviewed</FieldLabel></Field>
</FieldGroup>
</FieldSet>
</div>
<SheetFooter class="flex-row *:flex-1">
<SheetClose as-child><Button variant="secondary" size="modal">Cancel</Button></SheetClose>
<Button size="modal">Apply</Button>
</SheetFooter>
</SheetContent>
</Sheet>
</template>Details
A record's details beside the list it came from. Content wider than a filter list takes a larger size; sm stays the default.
<script setup>
import { Button } from '@aisgroup/design/ui/button';
import { Sheet, SheetContent, SheetDescription, SheetHeader, SheetTitle, SheetTrigger } from '@aisgroup/design/ui/sheet';
import { StatusLabel } from '@aisgroup/design/ui/status-label';
const facts = [['Dataset', 'PCB inspection'], ['Images', '4,210'], ['Accuracy', '97.4%'], ['Started', '06/10/2026 09:12'], ['Finished', '06/10/2026 13:48'], ['Created by', 'Laura Vidal']];
</script>
<template>
<Sheet>
<SheetTrigger as-child><Button variant="outline">Open details</Button></SheetTrigger>
<SheetContent size="lg">
<SheetHeader>
<SheetTitle>m-inspection-01</SheetTitle>
<SheetDescription class="sr-only">The model's details.</SheetDescription>
</SheetHeader>
<div class="flex flex-1 flex-col gap-6 overflow-y-auto px-4">
<StatusLabel tone="success">Finished</StatusLabel>
<dl class="grid grid-cols-2 gap-x-6 gap-y-4">
<div v-for="[label, value] in facts" :key="label" class="flex flex-col gap-1">
<dt class="text-muted-foreground">{{ label }}</dt>
<dd class="tabular-nums">{{ value }}</dd>
</div>
</dl>
</div>
</SheetContent>
</Sheet>
</template>