| type | ScrollType | 'hover' |
- Name
- type
- Description
Describes the nature of scrollbar visibility, similar to how the scrollbar preferences in MacOS control visibility of native scrollbars. auto - means that scrollbars are visible when content is overflowing on the corresponding orientation.
always - means that scrollbars are always visible regardless of whether the content is overflowing.
scroll - means that scrollbars are visible when the user is scrolling along its corresponding orientation.
hover - when the user is scrolling along its corresponding orientation and when the user is hovering over the scroll area.
glimpse - a hybrid approach that briefly shows scrollbars when the user enters the scroll area, then hides them until further interaction.
- Type
'always' | 'auto' | 'scroll' | 'hover' | 'glimpse'- Default
- 'hover'
|
| dir | Direction | — |
- Name
- dir
- Description
The reading direction of the combobox when applicable. If omitted, inherits globally from ConfigProvider or assumes LTR (left-to-right) reading mode. - Type
'ltr' | 'rtl'- Default
- —
|
| scrollHideDelay | number | 600 |
- Name
- scrollHideDelay
- Description
If type is set to either scroll or hover, this prop determines the length of time, in milliseconds, before the scrollbars are hidden after the user stops interacting with scrollbars. - Type
number- Default
- 600
|
| asChild | boolean | false |
- Name
- asChild
- Description
Change the default rendered element for the one passed as a child, merging their props and behavior. Read Reka UI's Composition guide for more details. - Type
boolean- Default
- false
|
| as | AsTag | Component | — |
- Name
- as
- Description
The element or component this component should render as. Can be overwritten by asChild. - Type
ComponentOptions<any, any, any, ComputedOptions, MethodOptions, any, any, any, string, {}, {}, string, {}, {}, {}, string, ComponentProvideOptions> | (props: any, ctx: Omit<{ attrs: Attrs; slots: Readonly<InternalSlots>; emit: (event: string, ...args: any[]) => void; expose: <Exposed extends Record<string, any> = Record<string, any>>(exposed?: Exposed | undefined) => void; }, 'expose'>): any | ComponentPublicInstanceConstructor<any, any, any, any, ComputedOptions, MethodOptions> | 'a' | 'button' | 'div' | 'form' | 'h2' | 'h3' | 'img' | 'input' | 'label' | 'li' | 'nav' | 'ol' | 'p' | 'span' | 'svg' | 'ul' | 'template' | {} & string- Default
- —
|
| class | ClassValue | — |
- Name
- class
- Description
Classes added to the part's own element, after its recipe classes. - Type
null | string | false | Record<string, any> | ClassValue[]- Default
- —
|
| orientation | 'vertical' | 'horizontal' | 'both' | 'vertical' |
- Name
- orientation
- Description
The direction the content scrolls in, and so the bars it draws. - Type
'vertical' | 'horizontal' | 'both'- Default
- 'vertical'
|