Skip to content
Viewership Inquire
Astro UI

Fine-tune Card.

Compact inspector the agent adjusts, then hands back to you.

AgentComponent1 dependency Beautiful UI, MIT

.md
Post card Adjust Edited

Layout

Install

  1. Import the foundation once

    foundation.css holds the tokens every component reads.

    Layout.astro
    ---
    // src/layouts/Layout.astro
    import "../styles/foundation.css";
    ---
  2. Copy FineTuneCard.astro

    Paste into src/components/viewership/fine-tune-card/

  3. Copy its dependencies

    Each in its own folder, next to this one.

  4. Use it

    Page.astro
    ---
    import FineTuneCard from "../components/viewership/fine-tune-card/FineTuneCard.astro";
    ---
    
    <FineTuneCard />

Props 8

PropTypeDefaultDescription
fields { key; label; name?; value; min; max; step?; suffix? }[] · Scrub-able number fields in pairs. `name` is the full accessible name when label is short.
options string[] · Type menu options.
layout 0 | 1 | 2 0 Initial layout: row, column, grid.
type string · Initial type. Empty shows the placeholder.
edits { field?: string; value?: number; layout?: number; type?: string }[] [] Changes the agent makes, in order, when scrolled into view. Interaction takes over.
autoplay boolean true Play edits on scroll into view.
loop boolean false Replay after a 4s hold until interaction.
labels Partial<FineTuneCardLabels> · Text overrides: title, layout, type, placeholder, adjust, edited, layouts.

Events

EventDetailWhen
vs-fine-tune-change CustomEvent<{ layout; layoutName; values; type; source: "user" | "agent" }> Fires on every change, by you or the agent.

Source 1 file

Ported from Beautiful UI, MIT. Notices.