Skip to content

Generation Meta ​

The info-and-actions block under a generation result: a 14/22 tertiary disclaimer line (the content notice, the credits spent) with a bare copy action below.

Examples ​

With copy action ​

moonbit
@sumi.generation_meta(
  text="AI-generated content | 0 credits used",
  on_copy=emit(CopyResult),
)

API ​

generation_meta ​

NameTypeDefaultDescription
text *String—14/22 tertiary disclaimer line
on_copyCmd—Renders the copy action when given
copy_labelString"Copy"Action aria label / title (default "Copy")
aria_labelString—
idString—Element id
classString—Extra class names
attrsAttrs—Extra HTML attributes
styleArray[String][]Extra inline styles

* required (labelled) parameter — everything else is optional.