SVG
Display and style scalable vector graphics
The SVG component displays scalable vector artwork such as icons, logos, and illustrations. SVGs remain sharp at every size and can often be recoloured directly from Elements.
By default, the component removes size, fill, stroke, and style attributes from the rendered SVG so its appearance can be controlled in the Inspector. The original resource stored in Elements is not changed.
Supported Content and File Types
The component accepts SVG resources. Use the Image component for JPG, PNG, and other bitmap images.
How to Use SVG
You’ll find SVG under Media in the Components list.
Drag SVG onto the page.
Drop an SVG from Finder or Resources into the SVG field.
Decide which embedded attributes Elements should remove.
Configure Fill, Stroke, Link, and Sizing.
Preview hover states in a browser.
Component Settings
SVG
SVG selects the resource.
Under Remove Attributes, each switch controls whether Elements strips that attribute while rendering:
Size — Removes embedded width and height. Enabled by default.
Fill — Removes embedded fill attributes. Enabled by default.
Stroke — Removes embedded stroke attributes. Enabled by default.
Styles — Removes embedded style attributes. Enabled by default.
Disable a switch when the original SVG must retain that attribute.
Fill
Type can be None, Static, or Hover.
For Hover, Over chooses Self or Parent and State switches between Start and End.
Each visible state provides Color and Opacity. Both Start and End default to Surface 50 at 100% opacity.
Stroke
Type can be None, Static, or Hover. Hover provides Start and End states and can be triggered by Self or Parent.
Each state provides Color, Opacity, and Width. Colours default to Surface 50, opacity to 100%, and width to 1.
Link
Set To to make the SVG link to a page, resource, website, email address, phone number, anchor, or another supported destination.
Preparing SVG Files
Elements can remove common attributes at render time, but the SVG’s internal structure still determines whether fills and strokes respond correctly.
Remove fixed
widthandheightvalues when the SVG does not resize as expected.Use
currentColorfor fill or stroke when the artwork is designed to inherit a colour.If
currentColorprevents the Inspector from controlling the artwork, remove it and test again.Complex inline styles or multiple hard-coded fills may require editing in an SVG tool.


For a practical workflow, see SVG Cleanup with Sketch. You can use Sketch with the SVGO Compressor plugin.
Free SVG Icon Libraries
For a deeper introduction to working with SVG, see Practical SVG.
Accessibility
Decorative SVGs should not duplicate nearby text. When an SVG conveys meaning, provide an accessible text label through the surrounding link, button, caption, or content structure.
Troubleshooting
Fill or stroke does not change
Check for hard-coded fill, stroke, class, or style values inside the SVG. Enable the relevant Remove Attributes switches, or clean the file in an SVG editor.
The SVG does not resize
Enable Remove Attributes → Size or remove fixed width and height attributes from the source SVG, then use the component’s Sizing controls.
Related Components
Image — Displays bitmap images with responsive source and lightbox controls.
Mask — Uses an SVG to reveal wrapped content.
Link to a page, resource, anchor, email address, or website.
Control positioning, stacking, visibility, overflow, and isolation.
Set width, height, and responsive size constraints.
Add responsive margin and padding.
Control fonts, text spacing, decoration, colour, and semantic wrappers.
Apply colour, image, gradient, SVG, video, and hover backgrounds.
Choose what animates and set its timing curve, duration, and delay.
Apply shadows, opacity, and hover effects.
Apply blur, brightness, saturation, shadow, and backdrop effects.
Scale, rotate, move, and skew components.
Set border style, colour, opacity, width, radius, and hover states.
Add CSS classes and IDs, or change supported HTML tags.
Last updated
Was this helpful?

