Skip to content

Commit 591538b

Browse files
committed
Copy Slider docs to Incubator.Slider
1 parent e763ec4 commit 591538b

File tree

1 file changed

+98
-1
lines changed

1 file changed

+98
-1
lines changed

src/incubator/Slider/slider.api.json

Lines changed: 98 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,5 +105,102 @@
105105
" maximumValue={10$3}",
106106
" onValueChange={value => console.log(\\`value changed: \\${value}\\`)$4}",
107107
"/>"
108-
]
108+
],
109+
"docs": {
110+
"hero": {
111+
"title": "Slider",
112+
"description": "Sliders allow users to make selections from a range of values in a quick and interactive way.\nSliders reflect a range of values along a bar, from which users may select a single value. They are ideal for adjusting settings such as volume, brightness, or applying image filters.",
113+
"type": "hero",
114+
"layout": "horizontal",
115+
"content": [
116+
{
117+
"value": "https://wixmp-1d257fba8470f1b562a0f5f2.wixmp.com/mads-docs-assets/assets/Components%20Docs/Slider/slider_hero.png"
118+
}
119+
]
120+
},
121+
"tabs": [
122+
{
123+
"title": "Overview",
124+
"sections": [
125+
{
126+
"type": "section",
127+
"title": "Usage examples",
128+
"description": "Sliders can be used for various types of user input and controls, for example an amount, or a specific setting.",
129+
"content": [
130+
{
131+
"value": "https://wixmp-1d257fba8470f1b562a0f5f2.wixmp.com/mads-docs-assets/assets/Components%20Docs/Slider/slider_section_examples.png"
132+
}
133+
]
134+
},
135+
{
136+
"type": "table",
137+
"columns": [
138+
"Slider type",
139+
"Preview"
140+
],
141+
"items": [
142+
{
143+
"title": "Linear slider",
144+
"description": "Use this slider to allow the user to select a numeric value from a range of numbers.",
145+
"content": [
146+
{
147+
"value": "https://wixmp-1d257fba8470f1b562a0f5f2.wixmp.com/mads-docs-assets/assets/Components%20Docs/Slider/slider_table_linear.png"
148+
}
149+
]
150+
},
151+
{
152+
"title": "Centered slider",
153+
"description": "This type allows the user to select negative values.",
154+
"content": [
155+
{
156+
"value": "https://wixmp-1d257fba8470f1b562a0f5f2.wixmp.com/mads-docs-assets/assets/Components%20Docs/Slider/slider_table_centered.png"
157+
}
158+
]
159+
},
160+
{
161+
"title": "Range slider",
162+
"description": "Use this slider to allow the user to select a range of values.",
163+
"content": [
164+
{
165+
"value": "https://wixmp-1d257fba8470f1b562a0f5f2.wixmp.com/mads-docs-assets/assets/Components%20Docs/Slider/slider_table_range.png"
166+
}
167+
]
168+
},
169+
{
170+
"title": "Color slider",
171+
"description": "Use this slider to allow the user to select a color from a gradient range of colors.",
172+
"content": [
173+
{
174+
"value": "https://wixmp-1d257fba8470f1b562a0f5f2.wixmp.com/mads-docs-assets/assets/Components%20Docs/Slider/slider_table_color.png"
175+
}
176+
]
177+
}
178+
],
179+
"title": "Slider types"
180+
},
181+
{
182+
"type": "section",
183+
"layout": "horizontal",
184+
"content": [
185+
{
186+
"value": "https://wixmp-1d257fba8470f1b562a0f5f2.wixmp.com/mads-docs-assets/assets/Components%20Docs/Slider/slider_spec_linear.png"
187+
}
188+
],
189+
"title": "Spec",
190+
"description": "**Linear slider**\n\n**Default**\nThumb: 24px \nOutline: 1.5px\n\n**On tap**\nThumb: 40px\nOutline: 1.5px\n\n**Disabled**"
191+
},
192+
{
193+
"type": "section",
194+
"layout": "horizontal",
195+
"content": [
196+
{
197+
"value": "https://wixmp-1d257fba8470f1b562a0f5f2.wixmp.com/mads-docs-assets/assets/Components%20Docs/Slider/slider_spec_range.png"
198+
}
199+
],
200+
"description": "**Range slider**\n\n**Initial state**\nWidest range is displayed by default.\n\n**Thumbs**\nThumbs should not cross each other and keep minimum distance between them of S2 (8px). Thumbs shouldn’t overlap each other when idle.\n\n**Spacing**\nMinimum spacing between idle Thumbs - S2"
201+
}
202+
]
203+
}
204+
]
205+
}
109206
}

0 commit comments

Comments
 (0)