ShowContentMode
Available options for custom content rendered via ColorVizOptions.
export type ShowContentMode = 'typeface' | 'text';
<ShowColorValueDecision d="Brand Black" size="m" viz="..." options={options} />
Type Values
Defines the content type.
Available only when viz is set to either
fg
and bg
modes, and ignored in other modes.
typeface
(default)
Renders a few characters.
You can override the content via options.content.
<ShowDecision d="Brand Pink" size="m" viz="fg" options={{ mode: 'typeface' }} />
Gg
#d45084
text
Renders a long text.
You can override the content via options.content.
<ShowDecision d="Brand Pink" size="xl" viz="fg" options={{ mode: 'text' }} />
A new path appeared from nowhere. The hunter's breath was visible in the cold night air, his steps deliberate and measured as he followed the faint trail left behind. They exchanged a glance, unspoken understanding passing between them. The sun rose magnificently, announcing a brand new day. Overhead, the stars shimmered like a riddle waiting to be solved. A cold wind carried the scent of rain and something else—something unfamiliar. An owl took off. The night seemed endless, a tapestry of sound
#d45084