An object containing default property values applied to SVG icons in the preview panel and developer tools.
Overview
ThedefaultIconProperties setting defines default values for various SVG and component properties. These properties are used when previewing and interacting with icons in the extension’s interface.
Default Values
The extension comes with the following default configuration:Available Properties
Size Properties
General size dimension for the icon. Often used by icon libraries as a unified size prop.
Width of the icon in pixels or other CSS units.
Height of the icon in pixels or other CSS units.
Color Properties
Primary color of the icon. Often used for single-color icons.
Fill color for SVG paths and shapes.
Stroke (outline) color for SVG elements.
Alternative stroke color property, used by some icon libraries.
Width of the stroke (outline) for SVG elements.
Styling Properties
CSS class name to apply to the icon component.
Inline style object in JSON format for React/JSX components.
Style object for MUI (Material-UI) components, in JSON format.
State Properties
Custom state property that can be used for conditional rendering or icon variations.
Configuration Examples
Larger Icons with Blue Color
Material-UI Styling
Outlined Icons
Custom Class Name
Property Types
All property values are stored as strings. For object properties likestyle and sx, use JSON string format:
Custom Properties
You can add custom properties beyond the defaults. The setting accepts additional properties throughadditionalProperties:
Use Cases
- Framework-specific props: Configure properties that match your UI library (React, Material-UI, etc.)
- Team consistency: Ensure all developers preview icons with the same default properties
- Project theming: Match icon preview properties to your project’s design system
- Testing: Set specific properties for testing icon rendering
Related Settings
- Settings Overview - View all available settings
- Group Patterns - Organize icons into custom groups