# Image

```ts
import { Image } from "@pibbl/core";
```

`Image` uses [`ImageProps`](/reference/types/elements-components/#imageprops) and [`ImgStyle`](/reference/types/styles/#imgstyle) to paint a browser image source with
local geometry, border, and interaction. It rejects children. Browser decoded-
image behavior and CORS policy remain authoritative; Pibbl does not define an
image CORS policy.

```tsx
<Image
  style={{ src: "/logo.png", left: 20, top: 20, width: 120, height: 80 }}
/>
```

Try the [Image live example](/playground/#/examples/drawing/image).

## API details from source

<span id="api-Image"></span>

Describes a Canvas image primitive for JSX or createElement authoring.

```ts
Image: PibblPrimitiveComponent<ImageProps, PrimitiveInput<ImageProps, ImgStyle>>
```

Related API: [Image](/reference/components/image/), [PibblPrimitiveComponent](/reference/types/elements-components/#pibblprimitivecomponent), [ImageProps](/reference/types/elements-components/#imageprops), [PrimitiveInput](/reference/types/styles/#primitiveinput), [ImgStyle](/reference/types/styles/#imgstyle).

### Parameters

- **`props`** — Authored component inputs, supplied through JSX or createElement. See the linked
props and style types.

### Throws

When called directly; Pibbl mounts this component through JSX or createElement.

### See also

[ImageProps](/reference/types/elements-components/#imageprops)

[ImgStyle](/reference/types/styles/#imgstyle)

[View source — packages/core/src/lib/components/img.ts:147](/source/packages/core/src/lib/components/img-ts/#L147)

## Implementation guidance for agents

Read the [Drawing, layout, and effects companion](/agents/topics/layout/) for ownership, adaptation, failure modes, and verification. [Agent start](/agents/) provides the version-selection workflow.

## Complete minimal examples

- [Drawing composition](/minimal-examples/drawing/composition/): Group, cache, and clip a drawing, then add text and an embedded thumbnail. [Plain source](/minimal/drawing/composition.tsx)
## Documentation version

Documentation built with @pibbl/core 0.0.2, revision 272a94a. ALPHA — NOT FOR PRODUCTION USE.
