CSS
The AI label is non-interactive, so use a <span>. The first child is the “AI” mark, hidden from assistive technology; the second carries the localised text. The label wraps to a second line when its container is too narrow. It has no scheme behaviour: pick black or white by contrast with what sits behind it.
<span class="tng-ai-label"> <span aria-hidden="true">AI</span> <span>Generated</span></span>
Generated
Variants
Section titled “Variants”Colours
Section titled “Colours”The default colour is is-black, for light backgrounds. Add is-white for dark backgrounds.
<span class="tng-ai-label is-white"> <span aria-hidden="true">AI</span> <span>Generated</span></span>
Generated
Icon only
Section titled “Icon only”Move the text into sr-only. The label picks up its square padding from that markup. Use a full name, “AI-generated” or “AI-modified”, never just “AI”.
<span class="tng-ai-label"> <span aria-hidden="true">AI</span> <span class="sr-only">AI-generated</span></span>
AI-generated
The default size is is-lg. Add is-sm for the smaller size.
<span class="tng-ai-label is-sm"> <span aria-hidden="true">AI</span> <span>You’re chatting with an AI</span></span><span class="tng-ai-label is-lg"> <span aria-hidden="true">AI</span> <span>You’re chatting with an AI</span></span>
You’re chatting with an AI
You’re chatting with an AI