FeedbackButton

Floating Action Buttons

Auf der Live-Site kommt eine Instanz aus Layout.astro (unten rechts): Feedback-Button, Bug-Button und vorgefülltes GitHub-Issue mit Metadaten. In Produktion standardmäßig aus; Aktivierung über PUBLIC_ENABLE_FEEDBACK_BUTTON=true oder das Prop enabled. Keine zweite Demo-Instanz hier, um doppelte FABs zu vermeiden.

Codebeispiel

import FeedbackButton from '~/components/widgets/FeedbackButton.astro';
<FeedbackButton
position="bottom-right"
label="Problem melden"
icon="tabler:bug"
enableScreenshot={false}
/>

Parameter

BezeichnerTypBeschreibungDefault
githubRepostringGitHub-Repo im Format owner/repoGITHUB_REPO
position'bottom-right' | 'bottom-left' | 'top-right' | 'top-left'Position der FAB-Gruppebottom-right
labelstringText am Bug-Button (Desktop)Problem melden
iconstringTabler-Icon für den Bug-Buttontabler:bug
enabledbooleanExplizit ein/aus; sonst Env/Prod-Logiksiehe Beschreibung
enableScreenshotbooleanScreenshot in den Issue-Body (falls unterstützt)false