# KptImage (kpt-image)
An image with an optional full-screen preview (zoom).
Import: `import { KptImage } from '@konce-pt/angular';`
## Inputs
- `src`: string (required); `alt`: string
- `width`: string | null (e.g. '240px')
- `preview`: boolean - a click opens a magnifying overlay
## Example
## Motion
The preview flies out of the thumbnail and lands in the middle on a soft spring; the corners keep the
thumbnail radius in flight and the thumbnail is empty while the photo is out. Closing - the x button,
`Escape` or a click on the backdrop - sends it back into the thumbnail before the dialog closes
(`Escape` is taken over through the dialog's `cancel` event). The kind comes from `enter` in the
motion config: `spring` (default), `fade` (cross-fade) or `none`. With the system "reduce motion"
setting the preview only cross-fades. The flight lives in `@konce-pt/motion` (`playZoomOpen`,
`playZoomClose`), shared by both ports.
## Preview size
The full-size photo keeps its proportions and is limited to 80% of the window height and 90% of its
width, so a portrait photo fits whole with a margin above and below, and the x button does not cover
it. Change the limits with `--kpt-image-preview-max-height` (default `80vh`) and
`--kpt-image-preview-max-width` (default `90vw`).
## Tokens
The radius `--kpt-radius-md`; the backdrop and the hover mask `--kpt-color-overlay-scrim`; the x button and the magnifier disc `--kpt-color-surface` / `--kpt-color-on-surface` with `--kpt-elevation-2`.
## Accessibility
With `preview`, the thumbnail is a `