components

Asset

A collection of responsive DataCamp assets, such as large icons or partner logos.
GitHub
Figma

Usage guidance

An Asset is used to help enhance content on a page or in a container, often with the intention of catching the user's attention.

All Assets are responsive by default and will fit to their parent container if no width or height is provided (whilst still adhering to their viewBox aspect ratio). A custom size can be provided by specifying either width or height. Please note, both properties should not be provided together as this will break the responsive scaling behavior.

Excluding Assets that have the Colored suffix in their names, the color of an Asset is inherited by default but can also be overwritten on the svg element itself.

For use-cases which are not React-based, we provide a download link for each Asset type below their examples.


Best practices

An Asset should be used to provide visual context or expand upon a written point. In most cases, it should not be used as an identifying mark and instead an Icon should be used.


Assignment Assets

AssessmentAssignment
CertificationAssignment
ChapterAssignment
CourseAssignment
CustomTrackAssignment
EarnXpAssignment
ProjectAssignment
TrackAssignment
Download Assignment Assets

3D Assets

BarChart3d
Bookmark3d
Branch3d
Calendar3d
Certification3d
Checkmark3d
Code3d
Database3d
Direction3d
DoubleArrow3d
Edit3d
Education3d
Email3d
Error3d
Finance3d
FourArrows3d
Globe3d
Import3d
Laptop3d
Love3d
MagnifyingGlass3d
MailboxEmpty3d
Mobile3d
Paper3d
Path3d
People3d
Rocket3d
Share3d
Target3d
TargetArrow3d
Team3d
Timer3d
TimerSleep3d
Track3d
Trophy3d

ALPA Assets

ApplyAlpa
AssessAlpa
LearnAlpa
PracticeAlpa

ALPA Loop Assets

ApplyColoredAlpaLoop
AssessColoredAlpaLoop
LearnColoredAlpaLoop
PracticeColoredAlpaLoop
RegularColoredAlpaLoop

Logo Assets

AirflowLogo
AlteryxLogo
AwsLogo
AzureLogo
BigQueryLogo
BnpParibasLogo
ColgatePalmoliveLogo
CreditSuisseLogo
DatabricksLogo
DbtLogo
DockerLogo
EbayLogo
ExcelLogo
GcpLogo
GitLogo
GoogleLogo
HsbcLogo
JavaLogo
JuliaLogo
KubernetesLogo
MercedesBenzLogo
MicrosoftLogo
MlflowLogo
OpenAiLogo
OracleLogo
PayPalLogo
PowerBiLogo
PythonLogo
PytorchLogo
RLogo
RedshiftLogo
ScalaLogo
ShellLogo
SnowflakeLogo
SparkLogo
SpreadsheetsLogo
SqlLogo
TMobileLogo
TableauLogo
UberLogo
WafflesColoredLogo
WafflesLogo

Logomark Assets

AirflowLogomark
AlteryxLogomark
AwsLogomark
AzureLogomark
BigQueryLogomark
DatabricksLogomark
DbtLogomark
DockerLogomark
ExcelLogomark
GcpLogomark
GitLogomark
JavaLogomark
JuliaLogomark
KubernetesLogomark
LlamaLogomark
MlflowLogomark
OpenAiLogomark
PowerBiLogomark
PythonLogomark
PytorchLogomark
RLogomark
RedshiftLogomark
RustLogomark
ScalaLogomark
ShellLogomark
SnowflakeLogomark
SparkLogomark
SpreadsheetLogomark
SqlLogomark
TableauLogomark
TheoryLogomark
WafflesColoredLogomark
WafflesLogomark

Other Assets

AvatarPlaceholderColored

Examples

Basic usage

Custom size and color


Props

Asset

Asset accepts all props from React.HTMLAttributes<SVGElement>.


Imports

You can import any existing asset as a separate component. For example to import the AvatarPlaceholderColored asset use:

import { AvatarPlaceholderColored } from '@datacamp/waffles/asset';

Additionally, you can also import the following types from this module:

import type { AssetProps } from '@datacamp/waffles/asset';