Prompt

Prompt component is a specialized variant of Button component designed for prompt buttons in Chat interfaces.

Example

Basic Usage
A simple prompt button with text, you can use variant prop to switch between Contained and Outlined variants:
Prompt with Contained variant
Prompt with Outlined variant
View code
With Left Icon
Replace the default left icon with a custom one:
Learn more about our bot
View code

API

Prompt
Prop nameTypeDefaultDescription
asany
Tag or component, but a simple tag (i.e. built-in components, e.g. div, span) is recommended.
colorstring
colorTypeColorTypes
disabledboolean
Equivalent to button's disabled property.
keyboardClickKeysstring[]
leftIconReactNode<AiSparkleFIcon colorType={ColorTypes.AccPri1st} />
Element before the label. Equivalent to element on the label with some margin.
leftIconContainerPropsHTMLAttributes<HTMLDivElement>
onBlurFocusEventHandler<HTMLDivElement>
onClickMouseEventHandler<HTMLDivElement>
onKeyDownKeyboardEventHandler<HTMLDivElement>
onKeyUpKeyboardEventHandler<HTMLDivElement>
onMouseDownMouseEventHandler<HTMLDivElement>
onMouseLeaveMouseEventHandler<HTMLDivElement>
onMouseUpMouseEventHandler<HTMLDivElement>
onReleaseEventHandler<SyntheticEvent<HTMLDivElement, Event>>
Callback that's triggered after click i.e. mouseup and keyup of enter or space.
onTouchEndTouchEventHandler<HTMLDivElement>
onTouchStartTouchEventHandler<HTMLDivElement>
radiusstring | number
variantPromptVariantscontained
    Example
    Example
    Basic Usage
    Basic Usage
    With Left Icon
    With Left Icon
    API
    API
    Prompt
    Prompt
Coral is a thoroughly developed design system widely adopted by developers and designers for creating beautiful and user-friendly Sea internal products.

Copyright © 2018-2025 Sea Labs