Skip to main content
HeroSquare
@coinbase/cds-web@8.13.6
Displays a square-shaped hero illustration.
Import
import { HeroSquare } from '@coinbase/cds-web/illustrations/HeroSquare'
ChangelogView changelogSourceView source codeStorybookView StorybookFigmaView Figma

Illustrations

dimension prop:
240x240
200x200

Basic example

Loading...
Live Code
<HeroSquare name="accessToAdvancedCharts" />

scaleMultiplier prop

If no predefined dimensions fit your use case, you can use the scaleMultiplier prop to scale the illustration.

Use scaleMultiplier sparingly and with caution. We have predefined dimensions to ensure that illustrations scale elegantly.

Loading...
Live Code
<HeroSquare name="accessToAdvancedCharts" scaleMultiplier={1.5} />

Scaling with dimension

If dimension and scaleMultiplier are both provided the component will scale based on the provided dimension.

Loading...
Live Code
<HeroSquare name="accessToAdvancedCharts" dimension="200x200" scaleMultiplier={1.5} />

Is this page useful?

Coinbase Design is an open-source, adaptable system of guidelines, components, and tools that aid the best practices of user interface design for crypto products.