@volvo-cars/react-icons
v3.3.6
Published
React Icons
Keywords
Readme
@volvo-cars/react-icons
React components for rendering Volvo Cars Design System icons, branded icons, icon buttons, and the Volvo Cars wordmark. Relies on @volvo-cars/css for styling via CSS masks and sprites.
What's included
Components
Icon— Renders a named Design System icon with configurable size and colourBrandedIcon— Renders a branded (product/feature) iconIconButton— An accessible button containing a single icon (with optional label for screen readers)Wordmark— Renders the "Volvo Cars" logotype wordmark
Types
IconName— Union type of all valid icon namesBrandedIconName— Union type of all valid branded icon namesIconColor— Union type of supported icon colour values
Configuration
getIconSrc— Returns the resolved URL for a given icon assetsetBaseUrl— Configures the base URL for icon sprite assets (useful for custom CDN setups)
Installation
yarn add @volvo-cars/react-icons