Prop | Default | Type |
---|---|---|
as | 'div' | AsTag | Component The element or component this component should render as. Can be overwritten by |
asChild | boolean Change the default rendered element for the one passed as a child, merging their props and behavior. Read our Composition guide for more details. | |
dir | 'ltr' | 'rtl' The reading direction of the combobox when applicable. | |
scrollHideDelay | 600 | number If type is set to either |
type | 'hover' | 'always' | 'scroll' | 'hover' | 'auto' Describes the nature of scrollbar visibility, similar to how the scrollbar preferences in MacOS control visibility of native scrollbars.
|
Methods | Type |
---|---|
scrollTop | () => void Scroll viewport to top |
scrollTopLeft | () => void Scroll viewport to top-left |