Components
AI Suggestion
A seal-cut button proposing the next stroke; selection hands back the prompt. The shared Button in its outline register.
#Basic usage
<script setup lang="ts">
import { AiPromptInput, AiSuggestion } from "@bysages/vue";
import { ref } from "vue";
const prompt = ref("");
</script>
<template>
<!-- Selecting a chip drafts it into the prompt vessel below. -->
<div class="grid gap-4 w-full">
<div class="flex flex-wrap gap-2">
<AiSuggestion prompt="Summarize the release" @select="prompt = $event" />
<AiSuggestion prompt="What changed in core?" @select="prompt = $event" />
</div>
<AiPromptInput v-model="prompt" />
</div>
</template>
#Props
#AiSuggestion
A seal-cut button proposing the next stroke; selection hands back the prompt. The shared Button in its outline register.
| Prop | Type | Default | Description |
|---|---|---|---|
prompt | String | The next stroke this seal proposes — also its label; handed back whole on select. |