# CropperViewer The `CropperViewer` interface provides properties and methods for manipulating the layout and presentation of `` elements. ## Examples ### Basic :::live-demo ```html ``` ::: :::tip The default height of this element is `0`. ::: ### Connect to CropperSelection :::live-demo ```html
``` ::: ## Properties Inherits properties from its parent, [`CropperElement`](cropper-element.html), and implements the following properties: | Name | Type | Default | Options | Description | | --- | --- | --- | --- | --- | | resize | `string` | `"vertical"` | `"both"`, `"horizontal"`, `"vertical"`, `"none"` | Indicates whether this element is resizable, and if so, in which directions. | | selection | `string` | `""` | - | Indicates the source selection to view. It must be a valid selector for `document.querySelector`. | | slottable | `boolean` | `false` | - | Indicates whether this element is slottable. | ## Slots There are no available slots in this element. > You can enable the default slot by setting the `slottable` property to `true`: > > ```html > > ```