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
PropTypeDefaultDescription
logic.provider*
enum (zag | native | none)
noneState and interaction provider used by this component.
logic.machine
string
-Underlying state machine identifier when provider is zag.
platforms*
array
WebPlatforms 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
PropTypeDefaultDescription
default
slot
-The cropper core components
Parts
PropTypeDefaultDescription
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.

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
PropTypeDefaultDescription
logic.provider*
enum (zag | native | none)
noneState and interaction provider used by this component.
logic.machine
string
-Underlying state machine identifier when provider is zag.
platforms*
array
WebPlatforms 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
PropTypeDefaultDescription
default
slot
-The cropper core components
Parts
PropTypeDefaultDescription
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.