Skip to main content

Interface: InlineCropProps

Hierarchy

Properties

ariaLabel

Optional ariaLabel: string

Deprecated

  • Use kebab-case aria-label instead Label to be used for accessibility purposes.

Inherited from

SharedComponentProps.ariaLabel

Defined in

packages/ida-framework/src/types.ts:46


className

Optional className: string

Inherited from

SharedComponentProps.className

Defined in

packages/ida-framework/src/types.ts:48


crop

crop: Crop

The cropping box's offset as a percent from the top, right, bottom, and left edges of the image

Inherited from

CroppingValues.crop

Defined in

packages/ida-framework/src/features/inlineCrop/types.ts:7


onMoveCrop

onMoveCrop: (value: { crop: Crop }) => void

Type declaration

▸ (value): void

Fired when the image is moved

Parameters
NameType
valueObject
value.cropCrop
Returns

void

Defined in

packages/ida-framework/src/features/inlineCrop/InlineCrop.tsx:24


onResizeCrop

onResizeCrop: (value: CroppingValues) => void

Type declaration

▸ (value): void

Fired when the image is resized

Parameters
NameType
valueCroppingValues
Returns

void

Defined in

packages/ida-framework/src/features/inlineCrop/InlineCrop.tsx:28


position

position: Object

The item's position within the design area

Type declaration

NameType
xnumber
ynumber

Inherited from

CroppingValues.position

Defined in

packages/ida-framework/src/features/inlineCrop/types.ts:11


role

Optional role: AriaRole

Inherited from

SharedComponentProps.role

Defined in

packages/ida-framework/src/types.ts:49


rotation

rotation: number

The item's rotation

Defined in

packages/ida-framework/src/features/inlineCrop/InlineCrop.tsx:20


size

size: Object

The item's size

Type declaration

NameType
heightnumber
widthnumber

Inherited from

CroppingValues.size

Defined in

packages/ida-framework/src/features/inlineCrop/types.ts:15


style

Optional style: CSSProperties

Inherited from

SharedComponentProps.style

Defined in

packages/ida-framework/src/types.ts:47


uncroppedUrl

uncroppedUrl: string

URL pointing to the uncropped version of the image

Defined in

packages/ida-framework/src/features/inlineCrop/InlineCrop.tsx:16