Module
React.Aria.Listbox
- Package
- purescript-react-aria
- Repository
- rowtype-yoga/purescript-react-aria
#AriaListBoxOptions Source
type AriaListBoxOptions :: Type -> Row Type
type AriaListBoxOptions a = ("aria-describedby" :: String, "aria-details" :: String, "aria-label" :: String, "aria-labelledby" :: String, autoFocus :: FocusStrategy, defaultSelectedKeys :: Array String, disabledKeys :: Array String, disallowEmptySelection :: Boolean, id :: String, isVirtualized :: Boolean, items :: Array a, label :: JSX, onBlur :: EventHandler, onFocus :: EventHandler, onFocusChange :: EffectFn1 Boolean Unit, onSelectionChange :: EffectFn1 Selection Unit, selectedKeys :: Array String, selectionMode :: SelectionMode, shouldFocusOnHover :: Boolean, shouldFocusWrap :: Boolean, shouldSelectOnPressUp :: Boolean, shouldUseVirtualFocus :: Boolean)
#ListBoxAria Source
type ListBoxAria = { labelProps :: Record (), listBoxProps :: Record () }
#useListBoxImpl Source
useListBoxImpl :: forall props. EffectFn3 props ListState (Ref (Nullable Node)) ListBoxAria
#useListBox Source
useListBox :: forall a props props_. Union props props_ (AriaListBoxOptions a) => Record props -> ListState -> Ref (Nullable Node) -> Hook UseListBox ListBoxAria
#AriaOptionPropsOptional Source
type AriaOptionPropsOptional :: Row Type
type AriaOptionPropsOptional = ("aria-label" :: String)
#AriaOptionPropsRequired Source
type AriaOptionPropsRequired :: Row Type -> Row Type
type AriaOptionPropsRequired r = (key :: String | r)
#useOptionImpl Source
useOptionImpl :: forall props. EffectFn3 props ListState (Ref (Nullable Node)) OptionAria
#useOption Source
useOption :: forall props props_. Union props props_ AriaOptionPropsOptional => Record (AriaOptionPropsRequired props) -> ListState -> (Ref (Nullable Node)) -> Hook UseOption OptionAria
#AriaListBoxSectionProps Source
type AriaListBoxSectionProps :: Row Type
type AriaListBoxSectionProps = ("aria-label" :: String, heading :: JSX)
#ListBoxSectionAria Source
type ListBoxSectionAria = { groupProps :: Record (), headingProps :: Record (), itemProps :: Record () }
#useListBoxSectionImpl Source
useListBoxSectionImpl :: forall props. EffectFn1 props ListBoxSectionAria