Image Cropper
Installation
npx shadcn@latest add https://ui.timkit.cn/r/image-cropper.json
Usage
import { ImageCropper } from "@/components/ui/image-cropper"
Examples
Image Cropper · Remove image
Loading preview...
Image Cropper · Interactive State
Loading preview...
Image Cropper · Interactive State
Loading preview...
Image Cropper · Interactive State
Loading preview...
Image Cropper · Interactive State
Loading preview...
Image Cropper · Interactive State
Loading preview...
Image Cropper · Interactive State
Loading preview...
Image Cropper · Zoom slider
Loading preview...
Image Cropper · Interactive State
Loading preview...
Image Cropper · Interactive State
Loading preview...
Image Cropper · Disabled State
Loading preview...
Structured API
Component
image-cropper
Logic
none
Runtime Frameworks
Not declared
Supported Platforms
Web
Configuration
| Prop | Type | Default | Description |
|---|---|---|---|
| logic.provider* | enum (zag | native | none) | none | State and interaction provider used by this component. |
| logic.machine | string | - | Underlying state machine identifier when provider is zag. |
| platforms* | array | Web | Platforms officially supported by this schema. |
| frameworks* | array | - | Framework demos/code currently available in registry files. |
| dependencies | array | - | Runtime package dependencies required by this registry item. |
| optionalPeerDependencies | array | - | Optional peer dependencies used by this registry item. |
| registryDependencies | array | - | Dependent Timkit registry components/hook entries. |
Slots
| Prop | Type | Default | Description |
|---|---|---|---|
| default | slot | - | The cropper core components |
Parts
| Prop | Type | Default | Description |
|---|---|---|---|
| root* | root | - | The cropper container |
| description | part | - | The accessibility description |
| image | part | - | The image being cropped |
| cropArea | part | - | The selection area |
This API reference is generated from `/packages/core` component schemas to keep React/Vue/Weapp docs consistent.
Extended notes are not available for this component yet.
On This Page
- Installation
- Usage
- Examples
- Image Cropper · Remove image
- Image Cropper · Interactive State
- Image Cropper · Interactive State
- Image Cropper · Interactive State
- Image Cropper · Interactive State
- Image Cropper · Interactive State
- Image Cropper · Interactive State
- Image Cropper · Zoom slider
- Image Cropper · Interactive State
- Image Cropper · Interactive State
- Image Cropper · Disabled State
- API Reference
Image Cropper
Installation
npx shadcn@latest add https://ui.timkit.cn/r/image-cropper.json
Usage
import { ImageCropper } from "@/components/ui/image-cropper"
Examples
Image Cropper · Remove image
Loading preview...
Image Cropper · Interactive State
Loading preview...
Image Cropper · Interactive State
Loading preview...
Image Cropper · Interactive State
Loading preview...
Image Cropper · Interactive State
Loading preview...
Image Cropper · Interactive State
Loading preview...
Image Cropper · Interactive State
Loading preview...
Image Cropper · Zoom slider
Loading preview...
Image Cropper · Interactive State
Loading preview...
Image Cropper · Interactive State
Loading preview...
Image Cropper · Disabled State
Loading preview...
Structured API
Component
image-cropper
Logic
none
Runtime Frameworks
Not declared
Supported Platforms
Web
Configuration
| Prop | Type | Default | Description |
|---|---|---|---|
| logic.provider* | enum (zag | native | none) | none | State and interaction provider used by this component. |
| logic.machine | string | - | Underlying state machine identifier when provider is zag. |
| platforms* | array | Web | Platforms officially supported by this schema. |
| frameworks* | array | - | Framework demos/code currently available in registry files. |
| dependencies | array | - | Runtime package dependencies required by this registry item. |
| optionalPeerDependencies | array | - | Optional peer dependencies used by this registry item. |
| registryDependencies | array | - | Dependent Timkit registry components/hook entries. |
Slots
| Prop | Type | Default | Description |
|---|---|---|---|
| default | slot | - | The cropper core components |
Parts
| Prop | Type | Default | Description |
|---|---|---|---|
| root* | root | - | The cropper container |
| description | part | - | The accessibility description |
| image | part | - | The image being cropped |
| cropArea | part | - | The selection area |
This API reference is generated from `/packages/core` component schemas to keep React/Vue/Weapp docs consistent.
Extended notes are not available for this component yet.
On This Page
- Installation
- Usage
- Examples
- Image Cropper · Remove image
- Image Cropper · Interactive State
- Image Cropper · Interactive State
- Image Cropper · Interactive State
- Image Cropper · Interactive State
- Image Cropper · Interactive State
- Image Cropper · Interactive State
- Image Cropper · Zoom slider
- Image Cropper · Interactive State
- Image Cropper · Interactive State
- Image Cropper · Disabled State
- API Reference