# Media & Visual
> Visual components for a Widget: Icon, Image, Badge, Transition, Favicon and IFrame
## Icon
Shows an icon from the [Lucide](https://lucide.dev/icons) set, or one of QwryAI's short aliases. Use icons to give labels, buttons and rows visual context.
```jsx
```
### Props
| Prop | Type | Default | Description |
| - | - | - | - |
| `name` | string | — | A Lucide icon name, such as `"calendar-days"` or `"arrow-right"`, or an [alias](#icon-aliases). Names are matched without regard to case or dashes, so `"CalendarDays"` works too. An unknown name shows nothing. |
| `size` | `xs` \| `sm` \| `md` \| `lg` \| `xl` \| `2xl` \| `3xl` | `md` | Icon size: 12, 14, 16, 20, 24, 30 or 32 px. |
| `color` | color | current text color | Stroke color. Accepts theme tokens such as `secondary`, `success` or `danger`, or any CSS color. |
| `fill` | color | none | Fill color, for a solid icon such as a filled star. |
### Icon field format
Props that take an icon, such as a Button's `iconStart` or a Card's `status.icon`, accept either form:
* **A name:** `"heart"`
* **An object** with a color: `{ "name": "heart", "color": "danger" }`
### Icon aliases
Besides every Lucide name, these short names are available:
| Alias | Shows |
| - | - |
| `agent` | bot |
| `analytics`, `chart` | bar chart |
| `batch` | boxes |
| `book-clock` | clock |
| `book-closed` | book |
| `check-circle-filled` | filled check circle |
| `circle-question` | circle help |
| `confetti` | party popper |
| `cube` | box |
| `desktop` | monitor |
| `document`, `page-blank`, `square-text` | file text |
| `dots-horizontal` | more horizontal |
| `dots-vertical` | more vertical |
| `empty-circle` | circle |
| `images`, `square-image` | images |
| `keys` | key |
| `lab` | flask |
| `lifesaver` | life buoy |
| `maps` | map |
| `mobile` | smartphone |
| `name`, `profile` | user |
| `notebook-pencil` | notebook pen |
| `profile-card` | contact |
| `reload` | rotate counter-clockwise |
| `settings-slider` | sliders horizontal |
| `sparkle`, `sparkle-double` | sparkles |
| `square-code` | code |
| `star-filled` | star |
| `suitcase` | briefcase |
| `wreath` | award |
| `write`, `write-alt`, `write-alt2` | square pen |
> [!TIP]
>
> Browse every icon at [lucide.dev/icons](https://lucide.dev/icons) and use its name as shown there.
## Image
Shows an image, with control over its size, crop and corners. It can also be clickable.
```jsx
```
Give `src` an object to use a different image in light and dark mode:
```jsx
```
### Props
`Image` accepts the sizing and spacing props of [layout components](/docs/developer-guides/widgets/components/layout#common-layout-props) (`width`, `height`, `size`, the min and max sizes, `aspectRatio`, `radius`, `background`, `margin`, `flex` and more), plus:
| Prop | Type | Default | Description |
| - | - | - | - |
| `src` | string \| `{ light, dark }` | — | Image address. With no `src`, nothing is shown. |
| `alt` | string | — | Text read by screen readers, and the image's name when it's clickable. |
| `fit` | `cover` \| `contain` \| `fill` \| `scale-down` \| `none` | `cover` | How the image fills its box, as in CSS `object-fit`. |
| `position` | `center` \| `top` \| `bottom` \| `left` \| `right` \| `top left` \| `top right` \| `bottom left` \| `bottom right` | `center` | Which part stays in view when the image is cropped. |
| `radius` | radius | `md` | Corner rounding. |
| `frame` | boolean | `false` | Adds a thin border around the image. |
| `flush` | boolean | `false` | Stretches the image to the edges of its container, ignoring padding. |
| `onClickAction` | action | — | Function to run when the image is clicked. |
> [!NOTE]
>
> Images you upload in the builder are hosted for you. See [Add images to your Widget](/docs/developer-guides/widgets/ai-widget-builder#add-images-to-your-widget).
## Badge
A small label for a status, category or tag.
```jsx
```
```jsx
```
### Props
| Prop | Type | Default | Description |
| - | - | - | - |
| `label` | string | — | The badge text. |
| `color` | `secondary` \| `success` \| `danger` \| `warning` \| `caution` \| `info` \| `discovery`, or any color | `secondary` | Badge color. |
| `variant` | `solid` \| `soft` \| `outline` | `soft` | `solid` fills the badge, `soft` tints it, and `outline` draws only a border. |
| `size` | `sm` \| `md` \| `lg` | `sm` | Badge size. |
| `pill` | boolean | `true` | Fully rounded ends. Set `pill={false}` for slightly rounded corners. |
## Transition
Animates between views. Put two or more children inside, each shown only in some [state](/docs/developer-guides/widgets/states); `Transition` shows the first child that is visible and fades between them when that changes.
```jsx
```
The outgoing view fades out over 0.2 seconds and the new one fades in over 0.3 seconds. `Transition` has no props.
## Favicon
A small round site icon for a web address, useful beside links and sources.
```jsx
```
### Props
| Prop | Type | Default | Description |
| - | - | - | - |
| `url` | string | — | The site whose icon to show. |
| `alt` | string | — | Text read by screen readers. |
| `size` | number | `12` | Size in pixels. |
| `frame` | boolean | `false` | Adds a thin ring around the icon. |
## IFrame
Embeds a web page inside the Widget, such as a map or a booking page.
```jsx
```
### Props
| Prop | Type | Default | Description |
| - | - | - | - |
| `src` | string | — | The page to embed. It must start with `https://`. |
| `title` | string | `Embedded widget content` | Accessible name of the frame. |
| `height` | number \| string | at least 120 px | Frame height. |
| `allow` | string | — | Browser features the page may use, as in the HTML `allow` attribute. |
| `sandbox` | string | `allow-forms allow-popups allow-scripts` | What the page may do, as in the HTML `sandbox` attribute. |
| `flush` | boolean | `false` | Stretches the frame to the edges of the card. |
> [!WARNING]
>
> Many sites refuse to load inside a frame on another site. Check the page loads in the builder preview before you rely on it.
## Next steps
> [card] Form Inputs | /docs/developer-guides/widgets/components/form-inputs | Fields, dropdowns, dates and choices.
> [card] States | /docs/developer-guides/widgets/states | Show different views as the Widget's data changes.