# Sheet Transition You can bind a sheet to a component through the **bindSheet** attribute. You can also set the sheet to the preset or custom height for when the component is inserted. > **NOTE** > > The APIs of this module are supported since API version 10. Updates will be marked with a superscript to indicate their earliest API version. > Switching between landscape and portrait modes is not supported. ## Attributes | Name| Parameter | Description| | -------- | -------- | -------- | | bindSheet | isShow: boolean,
builder: [CustomBuilder](ts-types.md#custombuilder8),
sheetStyle?: [SheetStyle](#sheetstyle10) | Binds a sheet to the component, which can be displayed when the component is touched. **isShow**: whether to display the sheet. Mandatory.
**builder**: content of the sheet. Mandatory.
**sheetStyle**: height and control bar visibility of the sheet. Optional. By default, the default height is **Large** and the control bar is visible.| ## SheetStyle10+ | Name | Type | Mandatory| Description | | ------------------ | -------------------------------------- | ---- | ---------------------- | | height | [SheetSize](#sheetsize10) \| [Length](ts-types.md#length) | No| Height of the sheet. | | dragBar | boolean | No | Whether the control bar is visible. | ## SheetSize10+ | Name| Description| | -------- | -------- | | MEDIUM | The sheet height is half of the screen height.| | LARGE | The sheet height is almost the screen height.| ## Example ```ts // xxx.ets @Entry @Component struct SheetTransitionExample { @State isShow:boolean = false @State isShow2:boolean = false @State sheetHeight:number = 300; @State showDragBar:boolean = true; @Builder myBuilder() { Column() { Button("change height") .margin(10) .fontSize(20) .onClick(()=>{ this.sheetHeight = 500; }) Button("Set Illegal height") .margin(10) .fontSize(20) .onClick(()=>{ this.sheetHeight = null; }) Button("close dragBar") .margin(10) .fontSize(20) .onClick(()=>{ this.showDragBar = false; }) Button("close modal 1") .margin(10) .fontSize(20) .onClick(()=>{ this.isShow = false; }) } .width('100%') .height('100%') } build() { Column() { Button("transition modal 1") .onClick(() => { this.isShow = true }) .fontSize(20) .margin(10) .bindSheet($$this.isShow, this.myBuilder(), {height: this.sheetHeight, dragBar: this.showDragBar}) } .justifyContent(FlexAlign.Center) .width('100%') .height('100%') } } ``` ![en-us_sheet](figures/en-us_sheet.gif)