Skip to content
LogoLogo

AI Chip

Loading...

Loading...

Overview

Resources

Loading...

Loading...

Loading...

Loading...

Install

yarn add @camp/chip

Props

PropTypeDefaultDescription
type *"default" | "pill" | "interactive" | "gradient"—
themedbooleantrue
size"small" | "medium" | "large"—
status"success" | "warning" | "danger" | "neutral"—
maxTextWidthMaxWidth<string | number>—
dismissButtonPropsAiDismissButtonProps—
onDismiss() => void—
wrapperIdstring—

Generated from @camp/chip@10.8.2 source, ordered by production usage. * required. † standard HTML attribute — all native attributes are supported; only those with production usage are listed.

Variations

Default AiChip (gradient appearance)

import { AiChip } from '@camp/chip';
 
<AiChip>Default Chip</AiChip>;

Pill appearance

AI chips can be displayed with a pill-like appearance for a more modern, rounded design.

import { AiChip } from '@camp/chip';
 
<AiChip type="pill">Default Chip</AiChip>;

Status AiChip

import { AiChip } from '@camp/chip';
 
<AiChip status="success">Success</AiChip>;
<AiChip status="warning">Warning</AiChip>;
<AiChip status="danger">Danger</AiChip>;
<AiChip status="neutral">Neutral</AiChip>;
<AiChip>No Status</AiChip>;

Interactive AiChip

Interactive AiChips include the AiFill icon by default, and on hover/focus/active states, the chip displays a gradient border. This is a variation on the standard interactive chip in the color midnight. These chips can be used side-by-side to differentiate items in a list generated by AI, such as within the Combobox (multiselect with AI options).

Additional props compatible with the Interactive AiChip:

Prop nameTypeDefault valueDescription
size"small" "medium" "large""small"Sets the size of the Interactive AiChip.
onDismissfunctionundefinedCallback function to be called when the dismiss button is clicked.
dismissButtonPropsobjectundefinedProps to be passed to the dismiss button.
import { AiChip } from '@camp/chip';
 
<AiChip type="interactive" themed={themed}>
  Small
</AiChip>
<AiChip
  type="interactive"
  size="small" // default size
  onDismiss={() => {}}
  themed={themed} // true by default
  dismissButtonProps={{ id: 'dismiss' }} // pass props to the dismiss button as needed
  wrapperId="wrapper"
>
  Small with dismiss
</AiChip>

Usage

Best practices

  • Use AI chips to clearly identify AI-generated content, features, or system states
  • Keep chip text concise and descriptive, typically 2-4 words
  • Ensure sufficient color contrast for accessibility
  • Use consistent placement and styling across your application
  • Consider the context where AI chips appear to avoid confusion with other UI elements

Content guidelines

AI chip content should be clear, concise, and immediately recognizable as AI-related.

✅ DO

  • AI generated

  • AI testing

  • AI feature

🚫 DON’T

  • AI generated template content that is too long

  • AI Feature with unnecessary capitalization

  • AI-generated (with punctuation)

Accessibility

Keyboard support

  • AI chips are accessible via keyboard navigation
  • Focus indicators provide clear visual feedback
  • Screen readers announce the chip content and purpose

Color and contrast

  • AI chips maintain sufficient color contrast ratios
  • Text remains readable across different background colors
  • Consider users with color vision deficiencies when implementing
Copyright © 2026 ActiveCampaign