Panell emergent

Un panell ancorat al seu control.

Panell d’eina

Un panell ancorat a la seva eina, amb components estàndard a dins.

<script setup>
import { SlidersHorizontalIcon } from '@lucide/vue';
import { Button } from '@aisgroup/design/ui/button';
import { Field, FieldLabel } from '@aisgroup/design/ui/field';
import { Popover, PopoverContent, PopoverDescription, PopoverHeader, PopoverTitle, PopoverTrigger } from '@aisgroup/design/ui/popover';
import { Slider } from '@aisgroup/design/ui/slider';
</script>

<template>
  <Popover>
    <PopoverTrigger as-child><Button variant="outline"><SlidersHorizontalIcon data-icon="inline-start" />View options</Button></PopoverTrigger>
    <PopoverContent class="w-72">
      <PopoverHeader>
        <PopoverTitle>View options</PopoverTitle>
        <PopoverDescription>How the canvas shows the image.</PopoverDescription>
      </PopoverHeader>
      <Field class="mt-4"><FieldLabel>Brightness</FieldLabel><Slider :default-value="[50]" :max="100" /></Field>
    </PopoverContent>
  </Popover>
</template>

Escriu per cercar a la guia.