pub fn FocusScope(props: FocusScopeProps) -> impl IntoView
Expand description
§Required Props
- attrs: [
Vec<(&'static str, Attribute)>
] - children:
ChildrenFn
§Optional Props
- r#loop:
impl Into<MaybeProp<bool>>
- When
true
, tabbing from last item will focus first tabbable and shift+tab from first item will focus last tababble. Defaults tofalse
.
- When
- trapped:
impl Into<MaybeProp<bool>>
- When
true
, focus cannot escape the focus scope via keyboard, pointer, or a programmatic focus. Defaults tofalse
.
- When
- on_mount_auto_focus:
impl Into<Callback<Event>>
- on_unmount_auto_focus:
impl Into<Option<Callback<Event>>>
- as_child:
impl Into<MaybeProp<bool>>