Skip to content

AILabel

Stable

A small lime tag that says content was made by AI and explains how. Once a person edits the content, it becomes an undo button.

Also known as ai generated label, made with ai

Install with npm install @tattva/ui (setup), or copy the code from the kit in Downloads.

Feature container

Draft reply to the supplier.

Sits at the upper right of a box, a little away from the edge.

When to use it

A small lime tag that marks content as made by AI and opens a note explaining how. Once a person edits the content it turns into an undo button, because the content is no longer purely AI.

Made of: Lime tag · AI mark · Text · Explanation note · Undo button

Use it for

  • A box, message, field or image whose content the AI made.
  • Explaining what the AI did, with details, links or buttons.
  • Letting people go back to the AI version after they edit it.

Not for

  • A button that starts AI work: use Button.
  • A simple mark with no explanation: use AIBadge.
  • A full record of where content came from: use ProvenancePopover.

Do and avoid

Trip summary
Do. A small label next to AI content says who wrote it.

Trip summary (auto)

Avoid. A hidden hint hides that AI made it, which erodes trust.

Do

  • Put one label on the whole box, not one on every line.
  • Keep the label away from the edge of the box.
  • Use the buttons part for things like Learn more or Turn off.
  • Set edited to true as soon as a person changes the content, so the undo button appears.
  • In onRevert, restore the AI version and set edited back to false.

Avoid

  • Use the label as a button that starts AI work.
  • Put it on content a person wrote.
  • Make the label amber. Amber is only for when a person has to act.
  • Push the label right up against the edge of a box.

On a phone

  • On touch screens the pill keeps its size and has a 44px tap area. The revert button grows to 44px square.
  • The explainer opens on tap and closes by tapping outside, and its panel is at most the screen width minus 2rem.
  • Buttons in the Actions section wrap onto more lines on a narrow screen.

Seen in products

  • Carbon's AI label can mark anything from one word to a whole page. It opens a note with overview, details, links and buttons that stays open until the person clicks or tabs away.
  • Carbon puts the label at the upper right of a box, never against the edge. In a form field it sits on the right, centered up and down. In a group of icons it sits at the far left.
  • Sizes match the text beside them, and drop one size next to light icon buttons.
  • Carbon says not to use the label to start AI work or as decoration.
  • When a person edits AI content, Carbon removes the AI look and turns the label into an undo icon. Undoing brings the look back.

Build your next AI screen with Tattva.

Free and open, with the code. Start in one line.

Get started