# Drawer ```rust demo let show = create_rw_signal(false); let placement = create_rw_signal(DrawerPlacement::Top); let open = Callback::new(move |new_placement: DrawerPlacement| { placement.set(new_placement); show.set(true); }); view! { "Hello" } ``` ### Customize display area ```rust demo let show = create_rw_signal(false); view! {
"Current position"
} ``` ### Drawer Props | Name | Type | Default | Desciption | | --------- | ------------------------------ | ------------------------ | ----------------------------------------- | | class | `MaybeSignal` | `Default::default()` | Addtional classes for the drawer element. | | show | `MaybeSignal` | | Whether to show drawer. | | title | `MaybeSignal` | `Default::default()` | Drawer title. | | placement | `MaybeSignal` | `DrawerPlacement::Right` | Drawer placement. | | width | `MaybeSignal` | `520px` | Drawer width. | | height | `MaybeSignal` | `260px` | Drawer height. | | z_index | `MaybeSignal` | `2000` | z-index of the drawer. | | mount | `DrawerMount` | `DrawerMount::Body` | Container node of the drawer. | | children | `Children` | | Drawer content. |