<AiMark
collapsePadding="inline"
type="default"
size="medium"
popoverOrTooltipConfig={{
type: "tooltip",
content: "Powered by AI",
triggerLabel: "AI feature information",
}}
/>
AiMark Props
AiMark accepts all props from Icon except svg, plus the following:collapsePadding
"inline" | "block" | "all"
Collapses layout padding on the chosen axes so the mark’s box matches a plain icon on those axes. Interactive tooltip and popover variants keep the same hit target; non-interactive variants add padding on the non-collapsed axes.
Forces the pulsing morph animation to play.
popoverOrTooltipConfig
AiMarkWithTooltipOrPopoverConfig
Configuration for an optional tooltip or popover overlay. When provided, the icon renders as an interactive button that animates on hover and focus. See AiMarkWithTooltipOrPopoverConfig below.
size
"small" | "medium" | "large" | "xlarge"
default:"medium"
Size of the icon.
type
"default" | "gradient"
default:"default"
Visual style of the AI mark. "default" inherits the current text color. "gradient" applies a blue gradient fill.
A discriminated union — use type to select either the tooltip or popover variant.Accessible label for the trigger button, announced to screen readers.
Text content displayed inside the tooltip. When omitted, defaults to AI can make mistakes.
Optional props forwarded to the Tooltip component.
Discriminant for the tooltip variant.
Popover variant
Accessible label for the trigger button, announced to screen readers.
Content rendered inside the popover. When omitted, defaults to the standard AI disclaimer message and a Learn more link to the privacy policy.
Optional props forwarded to Popover.Content.
Optional props forwarded to the internal beta Popover root.
Discriminant for the popover variant.