@yamada-ui/scroll-area 0.1.10 → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/scroll-area.d.ts +16 -0
- package/package.json +2 -2
package/dist/scroll-area.d.ts
CHANGED
|
@@ -2,9 +2,25 @@ import * as _yamada_ui_core from '@yamada-ui/core';
|
|
|
2
2
|
import { HTMLUIProps, ThemeProps } from '@yamada-ui/core';
|
|
3
3
|
|
|
4
4
|
type ScrollAreaOptions = {
|
|
5
|
+
/**
|
|
6
|
+
* Scrollbar visibility type.
|
|
7
|
+
*
|
|
8
|
+
* @default 'hover'
|
|
9
|
+
*/
|
|
5
10
|
type?: 'always' | 'scroll' | 'hover' | 'never';
|
|
11
|
+
/**
|
|
12
|
+
* Props for inner element.
|
|
13
|
+
*/
|
|
6
14
|
innerProps?: HTMLUIProps<'div'>;
|
|
15
|
+
/**
|
|
16
|
+
* Delay in milliseconds before scrollbars are hidden.
|
|
17
|
+
*
|
|
18
|
+
* @default 1000
|
|
19
|
+
*/
|
|
7
20
|
scrollHideDelay?: number;
|
|
21
|
+
/**
|
|
22
|
+
* Callback function for when the scroll position changes.
|
|
23
|
+
*/
|
|
8
24
|
onScrollPositionChange?: ({ x, y }: {
|
|
9
25
|
x: number;
|
|
10
26
|
y: number;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@yamada-ui/scroll-area",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.2.0",
|
|
4
4
|
"description": "Yamada UI scroll area component",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"yamada",
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
"url": "https://github.com/hirotomoyamada/yamada-ui/issues"
|
|
36
36
|
},
|
|
37
37
|
"dependencies": {
|
|
38
|
-
"@yamada-ui/core": "0.
|
|
38
|
+
"@yamada-ui/core": "0.3.1",
|
|
39
39
|
"@yamada-ui/utils": "0.1.1"
|
|
40
40
|
},
|
|
41
41
|
"devDependencies": {
|