--- id: svg-image title: Svg Image --- # SVG Image It is used to render vector images. We can display images, icons, texts using this widget. SVGs are vector images and therefore are usually much smaller in file-size than bitmap-based images. Developers prefer having SVG **(Scalable Vector Graphics)** files as they are scalable and will render pixel-perfect at any resolution whereas JPEGs, PNGs and GIFs will not.
ToolJet - Widget Reference - SVG
## Properties ### SVG Data Enter the SVG data of the image to display it on the widget. :::tip Refer to the resources where SVG files are downloaded for free. You copy-paste the below data in this field to see a new icon being rendered. ::: ``` ``` ## General ### Tooltip A Tooltip is often used to specify extra information about something when the user hovers the mouse pointer over the widget. Under the General accordion, you can set the value in the string format. Now hovering over the widget will display the string as the tooltip.
ToolJet - Widget Reference - SVG
## Layout ### Show on desktop Toggle on or off to display the widget in desktop view. You can programmatically determine the value by clicking on `Fx` to set the value `{{true}}` or `{{false}}`. ### Show on mobile Toggle on or off to display the widget in mobile view. You can programmatically determine the value by clicking on `Fx` to set the value `{{true}}` or `{{false}}`. ## Styles ### Visibility Toggle on or off to control the visibility of the widget. You can programmatically change its value by clicking on the `Fx` button next to it. If `{{false}}` the widget will not be visible after the app is deployed. By default, it's set to `{{true}}`. ## Exposed variables There are currently no exposed variables for the component. ## Component specific actions (CSA) There are currently no CSA (Component-Specific Actions) implemented to regulate or control the component.