Documentation Index
Fetch the complete documentation index at: https://anvil.servicetitan.com/llms.txt
Use this file to discover all available pages before exploring further.
- Implementation
- Chip Props
Common Examples
Basic Chip
Chip components must at least have their label prop defined, which will define the text that is displayed within the Chip.Closeable Chip
Adding anonClose prop handler to the Chip component will render a clickable close button alongside the Chip.Clickable Chip
Adding anonClick prop handler to the Chip component will render the text inside the Chip as a clickable button.Chip with Avatar
Adding anavatar prop with a URL to an image will render an Avatar inside of the Chip as a prefix before the label. Note that the avatar prop cannot be used with the icon prop.Chip with Icon
Adding anicon prop with an imported SVG will render an Icon inside of the Chip as a prefix before the label. Note that the icon prop cannot be used with the avatar prop.Chip with AI Mark
Adding theaiMark prop displays the AiMark icon inside the chip to indicate AI-generated content. On default chips (no color), a gradient AI mark is shown. On colored chips, the AI mark inherits the chip’s text color.AI Mark with Color
When acolor prop is set alongside aiMark, the AI mark uses the default type, inheriting the chip’s text color for visual cohesion.AI Mark with Interactive Chips
WhenaiMark is used with onClick, the AI mark will animate when the chip is hovered or focused.React Accessibility
- The
Chipcomponent won’t be focusable unless it has anonClickoronCloseprop handler defined.