Skip to content

Commit ee5cd78

Browse files
wix-noci: update api.json (#3565)
Co-authored-by: rnuinoci[bot] <182611266+rnuinoci[bot]@users.noreply.github.com>
1 parent 3a2417a commit ee5cd78

File tree

1 file changed

+48
-0
lines changed

1 file changed

+48
-0
lines changed

src/components/toast/toast.api.json

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,56 @@
3030
"value": "https://embed.figma.com/design/xFjvYNkGTmYTGYMLrmz9Ir/Guidelines-to-Docs?node-id=4419-247566&embed-host=share"
3131
}
3232
]
33+
},
34+
{
35+
"type": "table",
36+
"columns": [
37+
"Type of message",
38+
"Preview"
39+
],
40+
"items": [],
41+
"title": "Types"
42+
},
43+
{
44+
"type": "table",
45+
"columns": [
46+
"Prop",
47+
"Preview"
48+
],
49+
"items": [],
50+
"title": "Accessories"
51+
},
52+
{
53+
"type": "section",
54+
"title": "Timing",
55+
"description": "markdown:\nToast disappears automatically after 5-10 seconds. The **default** duration depends on text length: [word count / 2] = X secs to disappear \nExamples: \n[15 words / 2] = 7.5 secs\n[2 words / 2] = 1, but 5 secs is minimum >> 5 secs \nWhen using Toasts in your product, keep in mind that the default display time is preset but can be adjusted for messages that need more attention or reading time. However, the duration should never be less than 5 seconds."
56+
},
57+
{
58+
"type": "section",
59+
"layout": "horizontal",
60+
"title": "Spec",
61+
"description": "markdown:\n**Positioning**\nThe Toast appears at the bottom of the screen, while keeping a spacing of S4 from the bottom of the screen, or from the bottom bar. \nThe Toast can be placed above CTA’s in order to keep the CTA available for the user. \nToast can be dismissed manually by swiping it down.",
62+
"content": [
63+
{
64+
"value": "https://wixmp-1d257fba8470f1b562a0f5f2.wixmp.com/mads-docs-assets/assets/Components%20Docs/Toast/toast_spec.png"
65+
}
66+
]
67+
},
68+
{
69+
"type": "section",
70+
"title": "Tablet Spec",
71+
"description": "markdown:\nWhen displaying a Toast on a Tablet, the width of the component adjusts to the content. \n- Min-width: 200px \n- Max-width: 524px",
72+
"content": [
73+
{
74+
"value": "https://wixmp-1d257fba8470f1b562a0f5f2.wixmp.com/mads-docs-assets/assets/Components%20Docs/Toast/toast_tablet.png"
75+
}
76+
]
3377
}
3478
]
79+
},
80+
{
81+
"title": "UX Guidelines",
82+
"sections": []
3583
}
3684
]
3785
}

0 commit comments

Comments
 (0)