Tally UI
UI

ToneDisc

ToneDisc displays a glyph on a circular background, with both colors chosen by tone.

Import

import { ToneDisc } from '@tallyui/components';

Usage

<ToneDisc tone="ok" size="lg" />

Props

PropTypeDefaultDescription
toneToneDiscToneRequiredSelects the background, glyph color and default icon
iconReact.ComponentType<SvgIconProps>Tone's glyphReplaces the glyph without changing the tone
size'sm' | 'default' | 'lg''default'Sizes both disc and glyph
testIDstring—Identifies the outer view in tests

Tones

ToneDiscToneBackgroundGlyph colorDefault glyph
okbg-ok-bgtext-okCheckIcon
warningbg-warning-bgtext-warning-textAlertTriangleIcon
badbg-bad-bgtext-badAlertCircleIcon
infobg-info/15text-infoInfoCircleIcon
mutedbg-mutedtext-muted-foregroundInfoCircleIcon

Sizes

SizeDisc classGlyph size
smsize-1118
defaultsize-1428
lgsize-2436