Citation

Citation component is used to render inline citations and citation list.

Basic Usage

Inline Citations
Use CitationPill wrapped by CitationPillGroup to render inline citations.
View code
Citation List
Use CitationGroup with Citation to render citation list.
View code

API

Citation
Prop nameTypeDefaultDescription
asany
Tag or component, but a simple tag (i.e. built-in components, e.g. div, span) is recommended.
citationNonumber
colorTypeColorTypes
Set color based on theme. If color is specified, that prop is used instead of this.
disabledboolean
Equivalent to button's disabled property.
keyboardClickKeysstring[]
leftIconReactNode
Element before the label. Equivalent to element on the label with some margin.
loadingboolean
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>
radiusnumber
rightIconReactNode
Element after the label. Equivalent to element on the label with some margin.
sizeButtonSizes
CitationGroup
CitationPill
Prop nameTypeDefaultDescription
citationNostring | number
CitationPillGroup
Prop nameTypeDefaultDescription
asany
Tag or component, but a simple tag (i.e. built-in components, e.g. div, span) is recommended.
cornerboolean
gapnumber-4
When gap is set to 0, separator will be rendered
renderInputWrapperProps(index: number) => HTMLAttributes<HTMLDivElement> & { as?: any; }
    Basic Usage
    Basic Usage
    Inline Citations
    Inline Citations
    Citation List
    Citation List
    API
    API
    Citation
    Citation
    CitationGroup
    CitationGroup
    CitationPill
    CitationPill
    CitationPillGroup
    CitationPillGroup
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