🌐 AI搜索 & 代理 主页
Skip to content

Commit 3418824

Browse files
authored
Update package.json
1 parent 3179701 commit 3418824

File tree

1 file changed

+65
-1
lines changed

1 file changed

+65
-1
lines changed

src/components/toast/package.json

Lines changed: 65 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,60 @@
1111
"components": [
1212
{
1313
"component": "BToast",
14+
"props": [
15+
{
16+
"prop": "title",
17+
"description": "The toast's title text"
18+
},
19+
{
20+
"prop": "toaster",
21+
"description": "The name of the toaster target to render the toast in"
22+
},
23+
{
24+
"prop": "visible",
25+
"description": "When true, shows the toast"
26+
},
27+
{
28+
"prop": "isStatus",
29+
"description": "When set to 'true', makes the toast have attributes aria-live=polite and role=status. When 'false' aria-live will be 'assertive' and role will be 'alert'"
30+
},
31+
{
32+
"prop": "appendToast",
33+
"description": "When true, the toast will be appended to the bottom on the visible toasts, otherwise it will be prepended"
34+
},
35+
{
36+
"prop": "noAutoHide",
37+
"description": "When set, disabled the toast from automatically dismissing itself"
38+
},
39+
{
40+
"prop": "autoHideDelay",
41+
"description": "The number of milliseconds before the toast auto dismisses itself"
42+
},
43+
{
44+
"prop": "noCloseButton",
45+
"description": "When set, hides the close button in the toast header"
46+
},
47+
{
48+
"prop": "noHoverPause",
49+
"description": "When set, disables the pausing of hte auto hide delay when the mouse hovers the toast"
50+
},
51+
{
52+
"prop": "solid",
53+
"description": "When set, renderes the toast with a solid background rather than translucent"
54+
},
55+
{
56+
"prop": "toastClass",
57+
"description": "CSS class (or classes) to add to the toast wrapper element"
58+
},
59+
{
60+
"prop": "headerClass",
61+
"description": "CSS class (or classes) to add to the toast header element"
62+
},
63+
{
64+
"prop": "bodyClass",
65+
"description": "CSS class (or classes) to add to the toast body element"
66+
}
67+
],
1468
"events": [
1569
{
1670
"event": "change",
@@ -94,7 +148,17 @@
94148
]
95149
},
96150
{
97-
"component": "BToaster"
151+
"component": "BToaster",
152+
"props": [
153+
{
154+
"prop": "name",
155+
"description": "The toaster's target name"
156+
},
157+
{
158+
"prop": "aria-atomic",
159+
"description": "When screen reader's should read out the entire contents (set to string 'true') or just the changes (set to string 'false'). Leave blank for most cases"
160+
}
161+
]
98162
}
99163
]
100164
}

0 commit comments

Comments
 (0)