Clutch

Overview

The Image primitives provide a flexible way to add and manage images and SVGs. Options include Image and SVG, each offering properties for customization and optimization.

API Reference

Image

The Image primitive is built using Next.js Image component, providing optimized loading and responsive behavior out of the box. For more details on additional features and advanced usage, refer to Next.js Image documentation.

PropTypeDefaultDescription
srcstringSpecifies the image source URL.
altstringProvides alternative text for the image, improving accessibility.
placeholderstringPlaceholder while the image loads.
prioritybooleanunset/ trueLoads the image with higher priority, useful for above-the-fold images.
unoptimizedbooleanfalseDisables image optimization, loading the image as-is.

SVG

The SVG primitive allows you to embed Scalable Vector Graphics (SVGs) directly in your design.

PropTypeDefaultDescription
srcstringSpecifies the SVG file source.

Styling

Both Image and SVG primitives can be styled using the Style Panel, Global Styles, and Selectors, allowing full control over their appearance within your design.