Module

React.Aria.Listbox

Package
purescript-react-aria
Repository
rowtype-yoga/purescript-react-aria

#ListState Source

type ListState = { collection :: Array Node, disabledKeys :: JSSet String, selectionManager :: SelectionManager }

#AriaListBoxOptions Source

type AriaListBoxOptions :: Type -> Row Typetype 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

#UseListBox Source

newtype UseListBox hooks

Constructors

#useListBox Source

useListBox :: forall a props props_. Union props props_ (AriaListBoxOptions a) => Record props -> ListState -> Ref (Nullable Node) -> Hook UseListBox ListBoxAria

#AriaOptionPropsOptional Source

#AriaOptionPropsRequired Source

#OptionAria Source

type OptionAria = { descriptionProps :: Record (), isDisabled :: Boolean, isFocused :: Boolean, isPressed :: Boolean, isSelected :: Boolean, labelProps :: Record (), optionProps :: Record () }

#useOptionImpl Source

#UseOption Source

newtype UseOption hooks

Constructors

#useOption Source

#AriaListBoxSectionProps Source

type AriaListBoxSectionProps :: Row Typetype AriaListBoxSectionProps = ("aria-label" :: String, heading :: JSX)

#ListBoxSectionAria Source

type ListBoxSectionAria = { groupProps :: Record (), headingProps :: Record (), itemProps :: Record () }

#useListBoxSectionImpl Source

#UseListBoxSection Source

newtype UseListBoxSection hooks

Constructors