@rio-cloud/uikit-mcp 1.0.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/LICENSE +202 -0
- package/README.md +91 -0
- package/bin/uikit-mcp.mjs +23 -0
- package/data/pages/Components/components/accentbar.json +207 -0
- package/data/pages/Components/components/activity.json +87 -0
- package/data/pages/Components/components/animatednumber.json +99 -0
- package/data/pages/Components/components/animations.json +87 -0
- package/data/pages/Components/components/appheader.json +291 -0
- package/data/pages/Components/components/applayout.json +1198 -0
- package/data/pages/Components/components/appnavigationbar.json +327 -0
- package/data/pages/Components/components/areacharts.json +563 -0
- package/data/pages/Components/components/aspectratioplaceholder.json +75 -0
- package/data/pages/Components/components/assettree.json +3080 -0
- package/data/pages/Components/components/autosuggests.json +710 -0
- package/data/pages/Components/components/avatar.json +157 -0
- package/data/pages/Components/components/banner.json +599 -0
- package/data/pages/Components/components/barcharts.json +1507 -0
- package/data/pages/Components/components/barlist.json +223 -0
- package/data/pages/Components/components/basicmap.json +68 -0
- package/data/pages/Components/components/bottomsheet.json +601 -0
- package/data/pages/Components/components/button.json +583 -0
- package/data/pages/Components/components/buttontoolbar.json +63 -0
- package/data/pages/Components/components/calendarstripe.json +235 -0
- package/data/pages/Components/components/card.json +69 -0
- package/data/pages/Components/components/carousel.json +39 -0
- package/data/pages/Components/components/chartcolors.json +34 -0
- package/data/pages/Components/components/chartsgettingstarted.json +32 -0
- package/data/pages/Components/components/chat.json +39 -0
- package/data/pages/Components/components/checkbox.json +847 -0
- package/data/pages/Components/components/clearableinput.json +789 -0
- package/data/pages/Components/components/collapse.json +175 -0
- package/data/pages/Components/components/composedcharts.json +159 -0
- package/data/pages/Components/components/contentloader.json +233 -0
- package/data/pages/Components/components/datatabs.json +680 -0
- package/data/pages/Components/components/datepickers.json +287 -0
- package/data/pages/Components/components/dialogs.json +1492 -0
- package/data/pages/Components/components/divider.json +93 -0
- package/data/pages/Components/components/dropdowns.json +936 -0
- package/data/pages/Components/components/editablecontent.json +1117 -0
- package/data/pages/Components/components/expander.json +377 -0
- package/data/pages/Components/components/fade.json +403 -0
- package/data/pages/Components/components/fadeexpander.json +75 -0
- package/data/pages/Components/components/fadeup.json +127 -0
- package/data/pages/Components/components/feedback.json +269 -0
- package/data/pages/Components/components/filepickers.json +269 -0
- package/data/pages/Components/components/formlabel.json +115 -0
- package/data/pages/Components/components/fullscreenmap.json +22 -0
- package/data/pages/Components/components/groupeditemlist.json +323 -0
- package/data/pages/Components/components/iconlist.json +45 -0
- package/data/pages/Components/components/imagepreloader.json +81 -0
- package/data/pages/Components/components/labeledelement.json +75 -0
- package/data/pages/Components/components/licenseplate.json +69 -0
- package/data/pages/Components/components/linecharts.json +987 -0
- package/data/pages/Components/components/listmenu.json +313 -0
- package/data/pages/Components/components/loadmore.json +175 -0
- package/data/pages/Components/components/mainnavigation.json +39 -0
- package/data/pages/Components/components/mapcircle.json +34 -0
- package/data/pages/Components/components/mapcluster.json +51 -0
- package/data/pages/Components/components/mapcontext.json +105 -0
- package/data/pages/Components/components/mapdraggablemarker.json +34 -0
- package/data/pages/Components/components/mapgettingstarted.json +27 -0
- package/data/pages/Components/components/mapgroup.json +1198 -0
- package/data/pages/Components/components/mapinfobubble.json +34 -0
- package/data/pages/Components/components/maplayergroup.json +34 -0
- package/data/pages/Components/components/mapmarker.json +700 -0
- package/data/pages/Components/components/mappolygon.json +45 -0
- package/data/pages/Components/components/maproute.json +623 -0
- package/data/pages/Components/components/maproutegenerator.json +16 -0
- package/data/pages/Components/components/mapsettings.json +51 -0
- package/data/pages/Components/components/maputils.json +34 -0
- package/data/pages/Components/components/multiselects.json +1451 -0
- package/data/pages/Components/components/nodata.json +139 -0
- package/data/pages/Components/components/notifications.json +65 -0
- package/data/pages/Components/components/numbercontrol.json +301 -0
- package/data/pages/Components/components/onboarding.json +302 -0
- package/data/pages/Components/components/page.json +197 -0
- package/data/pages/Components/components/pager.json +93 -0
- package/data/pages/Components/components/piecharts.json +731 -0
- package/data/pages/Components/components/popover.json +251 -0
- package/data/pages/Components/components/position.json +69 -0
- package/data/pages/Components/components/radialbarcharts.json +1304 -0
- package/data/pages/Components/components/radiobutton.json +1105 -0
- package/data/pages/Components/components/releasenotes.json +44 -0
- package/data/pages/Components/components/resizer.json +93 -0
- package/data/pages/Components/components/responsivecolumnstripe.json +123 -0
- package/data/pages/Components/components/responsivevideo.json +75 -0
- package/data/pages/Components/components/rioglyph.json +93 -0
- package/data/pages/Components/components/rules.json +410 -0
- package/data/pages/Components/components/saveableinput.json +703 -0
- package/data/pages/Components/components/selects.json +701 -0
- package/data/pages/Components/components/sidebar.json +243 -0
- package/data/pages/Components/components/sliders.json +235 -0
- package/data/pages/Components/components/smoothscrollbars.json +335 -0
- package/data/pages/Components/components/spinners.json +343 -0
- package/data/pages/Components/components/states.json +1705 -0
- package/data/pages/Components/components/statswidgets.json +314 -0
- package/data/pages/Components/components/statusbar.json +177 -0
- package/data/pages/Components/components/stepbutton.json +57 -0
- package/data/pages/Components/components/steppedprogressbars.json +417 -0
- package/data/pages/Components/components/subnavigation.json +107 -0
- package/data/pages/Components/components/supportmarker.json +45 -0
- package/data/pages/Components/components/svgimage.json +81 -0
- package/data/pages/Components/components/switch.json +111 -0
- package/data/pages/Components/components/tables.json +144 -0
- package/data/pages/Components/components/tagmanager.json +86 -0
- package/data/pages/Components/components/tags.json +146 -0
- package/data/pages/Components/components/teaser.json +188 -0
- package/data/pages/Components/components/timeline.json +45 -0
- package/data/pages/Components/components/timepicker.json +163 -0
- package/data/pages/Components/components/togglebutton.json +247 -0
- package/data/pages/Components/components/tooltip.json +270 -0
- package/data/pages/Components/components/virtuallist.json +175 -0
- package/data/pages/Foundations/foundations.json +2475 -0
- package/data/pages/Getting-started/start/changelog.json +22 -0
- package/data/pages/Getting-started/start/goodtoknow.json +32 -0
- package/data/pages/Getting-started/start/guidelines/color-combinations.json +58 -0
- package/data/pages/Getting-started/start/guidelines/custom-css.json +27 -0
- package/data/pages/Getting-started/start/guidelines/custom-rioglyph.json +22 -0
- package/data/pages/Getting-started/start/guidelines/formatting.json +97 -0
- package/data/pages/Getting-started/start/guidelines/iframe.json +93 -0
- package/data/pages/Getting-started/start/guidelines/obfuscate-data.json +22 -0
- package/data/pages/Getting-started/start/guidelines/print-css.json +37 -0
- package/data/pages/Getting-started/start/guidelines/spinner.json +144 -0
- package/data/pages/Getting-started/start/guidelines/supported-browsers.json +22 -0
- package/data/pages/Getting-started/start/guidelines/writing.json +242 -0
- package/data/pages/Getting-started/start/howto.json +72 -0
- package/data/pages/Getting-started/start/intro.json +37 -0
- package/data/pages/Getting-started/start/responsiveness.json +52 -0
- package/data/pages/Templates/templates/common-table.json +39 -0
- package/data/pages/Templates/templates/detail-views.json +71 -0
- package/data/pages/Templates/templates/expandable-details.json +39 -0
- package/data/pages/Templates/templates/feature-cards.json +103 -0
- package/data/pages/Templates/templates/form-summary.json +39 -0
- package/data/pages/Templates/templates/form-toggle.json +39 -0
- package/data/pages/Templates/templates/list-blocks.json +119 -0
- package/data/pages/Templates/templates/loading-progress.json +39 -0
- package/data/pages/Templates/templates/options-panel.json +39 -0
- package/data/pages/Templates/templates/panel-variants.json +39 -0
- package/data/pages/Templates/templates/progress-cards.json +71 -0
- package/data/pages/Templates/templates/progress-success.json +39 -0
- package/data/pages/Templates/templates/settings-form.json +39 -0
- package/data/pages/Templates/templates/stats-blocks.json +135 -0
- package/data/pages/Templates/templates/table-panel.json +39 -0
- package/data/pages/Templates/templates/table-row-animation.json +39 -0
- package/data/pages/Templates/templates/usage-cards.json +39 -0
- package/data/pages/Utilities/utilities/deviceutils.json +39 -0
- package/data/pages/Utilities/utilities/featuretoggles.json +42 -0
- package/data/pages/Utilities/utilities/fueltypeutils.json +118 -0
- package/data/pages/Utilities/utilities/routeutils.json +34 -0
- package/data/pages/Utilities/utilities/useaftermount.json +63 -0
- package/data/pages/Utilities/utilities/useaverage.json +86 -0
- package/data/pages/Utilities/utilities/useclickoutside.json +69 -0
- package/data/pages/Utilities/utilities/useclipboard.json +57 -0
- package/data/pages/Utilities/utilities/usecount.json +92 -0
- package/data/pages/Utilities/utilities/usedarkmode.json +50 -0
- package/data/pages/Utilities/utilities/usedebuginfo.json +63 -0
- package/data/pages/Utilities/utilities/useeffectonce.json +57 -0
- package/data/pages/Utilities/utilities/useelapsedtime.json +57 -0
- package/data/pages/Utilities/utilities/useelementsize.json +63 -0
- package/data/pages/Utilities/utilities/useesc.json +57 -0
- package/data/pages/Utilities/utilities/useevent.json +75 -0
- package/data/pages/Utilities/utilities/usefocustrap.json +57 -0
- package/data/pages/Utilities/utilities/usefullscreen.json +197 -0
- package/data/pages/Utilities/utilities/usehover.json +57 -0
- package/data/pages/Utilities/utilities/useinterval.json +63 -0
- package/data/pages/Utilities/utilities/useisfocuswithin.json +75 -0
- package/data/pages/Utilities/utilities/usekey.json +75 -0
- package/data/pages/Utilities/utilities/uselocalstorage.json +69 -0
- package/data/pages/Utilities/utilities/uselocationsuggestions.json +110 -0
- package/data/pages/Utilities/utilities/usemax.json +86 -0
- package/data/pages/Utilities/utilities/usemin.json +86 -0
- package/data/pages/Utilities/utilities/usemutationobserver.json +69 -0
- package/data/pages/Utilities/utilities/useonlinestatus.json +39 -0
- package/data/pages/Utilities/utilities/useonscreen.json +63 -0
- package/data/pages/Utilities/utilities/usepostmessage.json +80 -0
- package/data/pages/Utilities/utilities/useprevious.json +63 -0
- package/data/pages/Utilities/utilities/useresizeobserver.json +65 -0
- package/data/pages/Utilities/utilities/usescrollposition.json +103 -0
- package/data/pages/Utilities/utilities/usesearch.json +197 -0
- package/data/pages/Utilities/utilities/usesorting.json +139 -0
- package/data/pages/Utilities/utilities/usestatewithvalidation.json +69 -0
- package/data/pages/Utilities/utilities/usesum.json +86 -0
- package/data/pages/Utilities/utilities/usetableexport.json +87 -0
- package/data/pages/Utilities/utilities/usetableselection.json +311 -0
- package/data/pages/Utilities/utilities/usetimeout.json +63 -0
- package/data/pages/Utilities/utilities/usetoggle.json +75 -0
- package/data/pages/Utilities/utilities/usewindowresize.json +63 -0
- package/data/version.json +4 -0
- package/docs/content-schema.md +147 -0
- package/docs/navigation-inventory.json +1310 -0
- package/docs/search-synonyms.json +43 -0
- package/package.json +38 -0
- package/server/index.mjs +268 -0
- package/server/lib/load-docs.mjs +48 -0
- package/server/lib/normalise-doc.mjs +220 -0
- package/server/lib/render-markdown.mjs +82 -0
- package/server/lib/search-index.mjs +49 -0
- package/server/lib/types.js +99 -0
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
{
|
|
2
|
+
"metadata": {
|
|
3
|
+
"captured_at": "2025-11-21T12:08:01.286Z",
|
|
4
|
+
"source": "https://uikit.developers.rio.cloud/#components/timeline",
|
|
5
|
+
"category": "Components",
|
|
6
|
+
"section": "CSS Only",
|
|
7
|
+
"slug": "components/timeline",
|
|
8
|
+
"version": "v1.13.2",
|
|
9
|
+
"hash_algorithm": "sha256",
|
|
10
|
+
"hash": "a0b70042fdef5717bea915f8a13956969062140533bd41230855407214945e7f"
|
|
11
|
+
},
|
|
12
|
+
"title": "Timeline",
|
|
13
|
+
"lead": "The timeline component is a pure CSS component.",
|
|
14
|
+
"content": [
|
|
15
|
+
{
|
|
16
|
+
"heading": "Timeline",
|
|
17
|
+
"body": "",
|
|
18
|
+
"examples": [
|
|
19
|
+
{
|
|
20
|
+
"caption": "leeroy marked an answer 4m",
|
|
21
|
+
"rendered_html": "<div class=\"playground-content bg-white padding-20 padding-bottom-25\" style=\"width: 100%;\"><div><div><div class=\"h2 margin-bottom-25\">CSS Timeline</div><div class=\"display-grid grid-cols-1-xs grid-cols-2-sm grid-cols-4-lg gap-25\"><div class=\"padding-x-10\"><div class=\"h4 margin-bottom-25\">Default</div><div class=\"timeline\"><div class=\"timeline-element\"><div class=\"timeline-date\"><div class=\"text-medium\">01-2024</div></div><div class=\"timeline-content\">\nLorem ipsum dolor sit amet, consectetur adipiscing elit. In pharetra dui eget massa efficitur aliquam condimentum in felis. Integer eget metus vel nunc efficitur iaculis. Vivamus elementum ante et est sagittis semper. Ut consectetur enim nec tortor scelerisque tincidunt.</div></div><div class=\"timeline-element\"><div class=\"timeline-date\"><div class=\"text-medium\">02-2024</div></div><div class=\"timeline-content\">\nLorem ipsum dolor sit amet, consectetur adipiscing elit. In pharetra dui eget massa efficitur aliquam condimentum in felis. Integer eget metus vel nunc efficitur iaculis. Vivamus elementum ante et est sagittis semper. Ut consectetur enim nec tortor scelerisque tincidunt.</div></div><div class=\"timeline-element\"><div class=\"timeline-date\"><div class=\"text-medium\">03-2024</div></div><div class=\"timeline-content\">\nLorem ipsum dolor sit amet, consectetur adipiscing elit. In pharetra dui eget massa efficitur aliquam condimentum in felis. Integer eget metus vel nunc efficitur iaculis. Vivamus elementum ante et est sagittis semper. Ut consectetur enim nec tortor scelerisque tincidunt.</div></div></div></div><div class=\"padding-x-10\"><div class=\"h4 margin-bottom-25\">With UI elements</div><div class=\"timeline\"><div class=\"timeline-element margin-bottom-0\"><div class=\"timeline-date timeline-date-color-primary margin-right-10\"><span class=\"badge badge-primary padding-5\"><span class=\"rioglyph rioglyph-map-marker\"></span></span></div><div class=\"timeline-content margin-bottom-20\"><div class=\"text-medium margin-bottom-5\">Start today</div>\nLorem ipsum dolor sit amet, consectetur adipiscing elit. In pharetra dui eget massa efficitur aliquam condimentum in felis. Integer eget metus vel nunc efficitur iaculis. Vivamus elementum ante et est sagittis semper. Ut consectetur enim nec tortor scelerisque tincidunt.</div></div><div class=\"timeline-element margin-bottom-0\"><div class=\"timeline-date timeline-date-color-primary margin-right-10\"><span class=\"badge badge-primary text-medium\">2</span></div><div class=\"timeline-content margin-bottom-20\"><div class=\"text-medium margin-bottom-5\">02/2025</div>\nLorem ipsum dolor sit amet, consectetur adipiscing elit. In pharetra dui eget massa efficitur aliquam condimentum in felis. Integer eget metus vel nunc efficitur iaculis. Vivamus elementum ante et est sagittis semper. Ut consectetur enim nec tortor scelerisque tincidunt.</div></div><div class=\"timeline-element margin-bottom-0\"><div class=\"timeline-date timeline-date-thin timeline-date-dashed margin-right-10\"><div class=\"position-relative\"><div class=\"spinnerInfoBox display-flex justify-content-center align-items-center height-100pct\"><div class=\"spinner\"><div></div><div></div><div></div><div></div></div></div></div></div><div class=\"timeline-content margin-bottom-20\"><div class=\"text-medium margin-bottom-5\">Ongoing</div>\nLorem ipsum dolor sit amet, consectetur adipiscing elit. In pharetra dui eget massa efficitur aliquam condimentum in felis. Integer eget metus vel nunc efficitur iaculis. Vivamus elementum ante et est sagittis semper. Ut consectetur enim nec tortor scelerisque tincidunt.</div></div><div class=\"timeline-element\"><div class=\"timeline-date margin-right-10\"><span class=\"badge badge-muted padding-5 text-medium\"><span class=\"rioglyph rioglyph-finish\"></span></span></div><div class=\"timeline-content\"><div class=\"text-medium padding-top-2\">Finish</div></div></div></div></div><div class=\"padding-x-10\"><div class=\"h4 margin-bottom-25\">Events</div><div class=\"timeline\"><div class=\"timeline-element margin-bottom-0\"><div class=\"timeline-date timeline-date-thin margin-right-10\"><span class=\"badge badge-success padding-5 scale-80 margin-left-1\"><span class=\"rioglyph rioglyph-ok\"></span></span></div><div class=\"timeline-content margin-bottom-20 text-color-dark\"><b class=\"text-medium text-color-darkest\">leeroy</b> marked an <b class=\"text-medium text-color-darkest\">answer</b> 4m</div></div><div class=\"timeline-element margin-bottom-0\"><div class=\"timeline-date timeline-date-thin margin-right-10\"><span class=\"badge badge-muted padding-5 scale-80 margin-left-1\"><span class=\"rioglyph rioglyph-ok\"></span></span></div><div class=\"timeline-content margin-bottom-20 text-color-dark\"><b class=\"text-medium text-color-darkest\">leeroy</b> unmarked an <b class=\"text-medium text-color-darkest\">answer</b> 4m</div></div><div class=\"timeline-element margin-bottom-0\"><div class=\"timeline-date timeline-date-thin margin-right-10\"><span class=\"badge badge-success padding-5 scale-80 margin-left-1\"><span class=\"rioglyph rioglyph-ok\"></span></span></div><div class=\"timeline-content margin-bottom-20 text-color-dark\"><b class=\"text-medium text-color-darkest\">leeroy</b> marked an <b class=\"text-medium text-color-darkest\">answer</b> 7m</div></div><div class=\"timeline-element margin-bottom--2\"><div class=\"timeline-date timeline-date-thin margin-right-10\"><span class=\"badge badge-default badge-indicator-pinging scale-50 margin-left-2 padding-10\"></span></div><div class=\"timeline-content margin-bottom-20 text-color-dark\"><b class=\"text-medium text-color-darkest\">Andre</b> reopened <b class=\"text-medium text-color-darkest\">answer</b> 10m</div></div><div class=\"timeline-element margin-bottom--2\"><div class=\"timeline-date timeline-date-thin margin-right-10\"><span class=\"badge badge-default scale-50 margin-left-2 padding-10\"></span></div><div class=\"timeline-content text-color-dark\"><b class=\"text-medium text-color-darkest\">Andre</b> closed <b class=\"text-medium text-color-darkest\">answer</b> 1y</div></div></div><div class=\"timeline margin-top-50\"><div class=\"timeline-element margin-bottom-0\"><div class=\"timeline-date timeline-date-small timeline-date-thin margin-right-10 margin-top-5\"><div class=\"width-10 aspect-ratio-1 rounded-circle border border-color-info border-width-3 bg-white margin-left-1\"></div></div><div class=\"timeline-content margin-bottom-20 text-color-darker\">Inventory replenishment triggered</div></div><div class=\"timeline-element margin-bottom-0\"><div class=\"timeline-date timeline-date-small timeline-date-thin margin-right-10 margin-top-5\"><div class=\"width-10 aspect-ratio-1 rounded-circle border border-color-info border-width-2 bg-white margin-left-1\"></div></div><div class=\"timeline-content margin-bottom-20 text-color-darker\">Cross-Docking initiated</div></div><div class=\"timeline-element margin-bottom-0\"><div class=\"timeline-date timeline-date-small timeline-date-thin margin-right-10 margin-top-5\"><div class=\"width-10 aspect-ratio-1 rounded-circle border border-color-info border-width-2 bg-white margin-left-1\"></div></div><div class=\"timeline-content margin-bottom-20 text-color-darker\">Customs clearance completed</div></div><div class=\"timeline-element margin-bottom--2\"><div class=\"timeline-date timeline-date-small timeline-date-thin margin-right-10 margin-top-5\"><div class=\"width-10 aspect-ratio-1 rounded-circle border border-color-danger border-width-2 bg-white margin-left-1\"></div></div><div class=\"timeline-content margin-bottom-20 text-color-darker\">Cold chain integrity maintained</div></div><div class=\"timeline-element margin-bottom--2\"><div class=\"timeline-date timeline-date-small timeline-date-thin margin-right-10 margin-top-5\"><div class=\"width-10 aspect-ratio-1 rounded-circle border border-color-info border-width-2 bg-white margin-left-1\"></div></div><div class=\"timeline-content text-color-darker\">Last-Mile delivery assigned</div></div></div></div><div class=\"padding-x-10\"><div class=\"h4 margin-bottom-25\">Stream style</div><div class=\"timeline timeline-style-stream\"><div class=\"timeline-element\"><div class=\"timeline-date\">January</div><div class=\"timeline-content\">\nLorem ipsum dolor sit amet, consectetur adipiscing elit. In pharetra dui eget massa efficitur aliquam condimentum in felis. Integer eget metus vel nunc efficitur iaculis. Vivamus elementum ante et est sagittis semper. Ut consectetur enim nec tortor scelerisque tincidunt.</div></div><div class=\"timeline-element\"><div class=\"timeline-date\">February</div><div class=\"timeline-content\">\nLorem ipsum dolor sit amet, consectetur adipiscing elit. In pharetra dui eget massa efficitur aliquam condimentum in felis. Integer eget metus vel nunc efficitur iaculis. Vivamus elementum ante et est sagittis semper. Ut consectetur enim nec tortor scelerisque tincidunt.</div></div><div class=\"timeline-element\"><div class=\"timeline-date\">March</div><div class=\"timeline-content\">\nLorem ipsum dolor sit amet, consectetur adipiscing elit. In pharetra dui eget massa efficitur aliquam condimentum in felis. Integer eget metus vel nunc efficitur iaculis. Vivamus elementum ante et est sagittis semper. Ut consectetur enim nec tortor scelerisque tincidunt.</div></div></div></div></div></div></div></div>",
|
|
22
|
+
"tabs": [
|
|
23
|
+
{
|
|
24
|
+
"label": "HTML",
|
|
25
|
+
"language": "html",
|
|
26
|
+
"code": "<div>\n <div>\n <div class=\"h2 margin-bottom-25\">CSS Timeline</div>\n <div class=\"display-grid grid-cols-1-xs grid-cols-2-sm grid-cols-4-lg gap-25\">\n <div class=\"padding-x-10\">\n <div class=\"h4 margin-bottom-25\">Default</div>\n <div class=\"timeline\">\n <div class=\"timeline-element\">\n <div class=\"timeline-date\">\n <div class=\"text-medium\">01-2024</div>\n </div>\n <div class=\"timeline-content\">\n Lorem ipsum dolor sit amet, consectetur adipiscing elit. In pharetra dui eget massa efficitur aliquam condimentum in felis. Integer eget metus vel nunc efficitur iaculis. Vivamus elementum ante et est sagittis semper. Ut consectetur enim nec tortor scelerisque tincidunt.</div>\n </div>\n <div class=\"timeline-element\">\n <div class=\"timeline-date\">\n <div class=\"text-medium\">02-2024</div>\n </div>\n <div class=\"timeline-content\">\n Lorem ipsum dolor sit amet, consectetur adipiscing elit. In pharetra dui eget massa efficitur aliquam condimentum in felis. Integer eget metus vel nunc efficitur iaculis. Vivamus elementum ante et est sagittis semper. Ut consectetur enim nec tortor scelerisque tincidunt.</div>\n </div>\n <div class=\"timeline-element\">\n <div class=\"timeline-date\">\n <div class=\"text-medium\">03-2024</div>\n </div>\n <div class=\"timeline-content\">\n Lorem ipsum dolor sit amet, consectetur adipiscing elit. In pharetra dui eget massa efficitur aliquam condimentum in felis. Integer eget metus vel nunc efficitur iaculis. Vivamus elementum ante et est sagittis semper. Ut consectetur enim nec tortor scelerisque tincidunt.</div>\n </div>\n </div>\n </div>\n <div class=\"padding-x-10\">\n <div class=\"h4 margin-bottom-25\">With UI elements</div>\n <div class=\"timeline\">\n <div class=\"timeline-element margin-bottom-0\">\n <div class=\"timeline-date timeline-date-color-primary margin-right-10\">\n <span class=\"badge badge-primary padding-5\">\n <span class=\"rioglyph rioglyph-map-marker\">\n </span>\n </span>\n </div>\n <div class=\"timeline-content margin-bottom-20\">\n <div class=\"text-medium margin-bottom-5\">Start today</div>\n Lorem ipsum dolor sit amet, consectetur adipiscing elit. In pharetra dui eget massa efficitur aliquam condimentum in felis. Integer eget metus vel nunc efficitur iaculis. Vivamus elementum ante et est sagittis semper. Ut consectetur enim nec tortor scelerisque tincidunt.\n </div>\n </div>\n <div class=\"timeline-element margin-bottom-0\">\n <div class=\"timeline-date timeline-date-color-primary margin-right-10\">\n <span class=\"badge badge-primary text-medium\">2</span>\n </div>\n <div class=\"timeline-content margin-bottom-20\">\n <div class=\"text-medium margin-bottom-5\">02/2025</div>\n Lorem ipsum dolor sit amet, consectetur adipiscing elit. In pharetra dui eget massa efficitur aliquam condimentum in felis. Integer eget metus vel nunc efficitur iaculis. Vivamus elementum ante et est sagittis semper. Ut consectetur enim nec tortor scelerisque tincidunt.\n </div>\n </div>\n <div class=\"timeline-element margin-bottom-0\">\n <div class=\"timeline-date timeline-date-thin timeline-date-dashed margin-right-10\">\n <div class=\"position-relative\">\n <div class=\"spinnerInfoBox display-flex justify-content-center align-items-center height-100pct\">\n <div class=\"spinner\">\n <div>\n </div>\n <div>\n </div>\n <div>\n </div>\n <div>\n </div>\n </div>\n </div>\n </div>\n </div>\n <div class=\"timeline-content margin-bottom-20\">\n <div class=\"text-medium margin-bottom-5\">Ongoing</div>\n Lorem ipsum dolor sit amet, consectetur adipiscing elit. In pharetra dui eget massa efficitur aliquam condimentum in felis. Integer eget metus vel nunc efficitur iaculis. Vivamus elementum ante et est sagittis semper. Ut consectetur enim nec tortor scelerisque tincidunt.\n </div>\n </div>\n <div class=\"timeline-element\">\n <div class=\"timeline-date margin-right-10\">\n <span class=\"badge badge-muted padding-5 text-medium\">\n <span class=\"rioglyph rioglyph-finish\">\n </span>\n </span>\n </div>\n <div class=\"timeline-content\">\n <div class=\"text-medium padding-top-2\">Finish</div>\n </div>\n </div>\n </div>\n </div>\n <div class=\"padding-x-10\">\n <div class=\"h4 margin-bottom-25\">Events</div>\n <div class=\"timeline\">\n <div class=\"timeline-element margin-bottom-0\">\n <div class=\"timeline-date timeline-date-thin margin-right-10\">\n <span class=\"badge badge-success padding-5 scale-80 margin-left-1\">\n <span class=\"rioglyph rioglyph-ok\">\n </span>\n </span>\n </div>\n <div class=\"timeline-content margin-bottom-20 text-color-dark\">\n <b class=\"text-medium text-color-darkest\">leeroy</b> marked an <b class=\"text-medium text-color-darkest\">answer</b> 4m\n </div>\n </div>\n <div class=\"timeline-element margin-bottom-0\">\n <div class=\"timeline-date timeline-date-thin margin-right-10\">\n <span class=\"badge badge-muted padding-5 scale-80 margin-left-1\">\n <span class=\"rioglyph rioglyph-ok\">\n </span>\n </span>\n </div>\n <div class=\"timeline-content margin-bottom-20 text-color-dark\">\n <b class=\"text-medium text-color-darkest\">leeroy</b> unmarked an <b class=\"text-medium text-color-darkest\">answer</b> 4m\n </div>\n </div>\n <div class=\"timeline-element margin-bottom-0\">\n <div class=\"timeline-date timeline-date-thin margin-right-10\">\n <span class=\"badge badge-success padding-5 scale-80 margin-left-1\">\n <span class=\"rioglyph rioglyph-ok\">\n </span>\n </span>\n </div>\n <div class=\"timeline-content margin-bottom-20 text-color-dark\">\n <b class=\"text-medium text-color-darkest\">leeroy</b> marked an <b class=\"text-medium text-color-darkest\">answer</b> 7m\n </div>\n </div>\n <div class=\"timeline-element margin-bottom--2\">\n <div class=\"timeline-date timeline-date-thin margin-right-10\">\n <span class=\"badge badge-default badge-indicator-pinging scale-50 margin-left-2 padding-10\">\n </span>\n </div>\n <div class=\"timeline-content margin-bottom-20 text-color-dark\">\n <b class=\"text-medium text-color-darkest\">Andre</b> reopened <b class=\"text-medium text-color-darkest\">answer</b> 10m\n </div>\n </div>\n <div class=\"timeline-element margin-bottom--2\">\n <div class=\"timeline-date timeline-date-thin margin-right-10\">\n <span class=\"badge badge-default scale-50 margin-left-2 padding-10\">\n </span>\n </div>\n <div class=\"timeline-content text-color-dark\">\n <b class=\"text-medium text-color-darkest\">Andre</b> closed <b class=\"text-medium text-color-darkest\">answer</b> 1y\n </div>\n </div>\n </div>\n <div class=\"timeline margin-top-50\">\n <div class=\"timeline-element margin-bottom-0\">\n <div class=\"timeline-date timeline-date-small timeline-date-thin margin-right-10 margin-top-5\">\n <div class=\"width-10 aspect-ratio-1 rounded-circle border border-color-info border-width-3 bg-white margin-left-1\">\n </div>\n </div>\n <div class=\"timeline-content margin-bottom-20 text-color-darker\">Inventory replenishment triggered</div>\n </div>\n <div class=\"timeline-element margin-bottom-0\">\n <div class=\"timeline-date timeline-date-small timeline-date-thin margin-right-10 margin-top-5\">\n <div class=\"width-10 aspect-ratio-1 rounded-circle border border-color-info border-width-2 bg-white margin-left-1\">\n </div>\n </div>\n <div class=\"timeline-content margin-bottom-20 text-color-darker\">Cross-Docking initiated</div>\n </div>\n <div class=\"timeline-element margin-bottom-0\">\n <div class=\"timeline-date timeline-date-small timeline-date-thin margin-right-10 margin-top-5\">\n <div class=\"width-10 aspect-ratio-1 rounded-circle border border-color-info border-width-2 bg-white margin-left-1\">\n </div>\n </div>\n <div class=\"timeline-content margin-bottom-20 text-color-darker\">Customs clearance completed</div>\n </div>\n <div class=\"timeline-element margin-bottom--2\">\n <div class=\"timeline-date timeline-date-small timeline-date-thin margin-right-10 margin-top-5\">\n <div class=\"width-10 aspect-ratio-1 rounded-circle border border-color-danger border-width-2 bg-white margin-left-1\">\n </div>\n </div>\n <div class=\"timeline-content margin-bottom-20 text-color-darker\">Cold chain integrity maintained</div>\n </div>\n <div class=\"timeline-element margin-bottom--2\">\n <div class=\"timeline-date timeline-date-small timeline-date-thin margin-right-10 margin-top-5\">\n <div class=\"width-10 aspect-ratio-1 rounded-circle border border-color-info border-width-2 bg-white margin-left-1\">\n </div>\n </div>\n <div class=\"timeline-content text-color-darker\">Last-Mile delivery assigned</div>\n </div>\n </div>\n </div>\n <div class=\"padding-x-10\">\n <div class=\"h4 margin-bottom-25\">Stream style</div>\n <div class=\"timeline timeline-style-stream\">\n <div class=\"timeline-element\">\n <div class=\"timeline-date\">January</div>\n <div class=\"timeline-content\">\n Lorem ipsum dolor sit amet, consectetur adipiscing elit. In pharetra dui eget massa efficitur aliquam condimentum in felis. Integer eget metus vel nunc efficitur iaculis. Vivamus elementum ante et est sagittis semper. Ut consectetur enim nec tortor scelerisque tincidunt.</div>\n </div>\n <div class=\"timeline-element\">\n <div class=\"timeline-date\">February</div>\n <div class=\"timeline-content\">\n Lorem ipsum dolor sit amet, consectetur adipiscing elit. In pharetra dui eget massa efficitur aliquam condimentum in felis. Integer eget metus vel nunc efficitur iaculis. Vivamus elementum ante et est sagittis semper. Ut consectetur enim nec tortor scelerisque tincidunt.</div>\n </div>\n <div class=\"timeline-element\">\n <div class=\"timeline-date\">March</div>\n <div class=\"timeline-content\">\n Lorem ipsum dolor sit amet, consectetur adipiscing elit. In pharetra dui eget massa efficitur aliquam condimentum in felis. Integer eget metus vel nunc efficitur iaculis. Vivamus elementum ante et est sagittis semper. Ut consectetur enim nec tortor scelerisque tincidunt.</div>\n </div>\n </div>\n </div>\n </div>\n </div>\n</div>"
|
|
27
|
+
}
|
|
28
|
+
]
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
"caption": "Shipment",
|
|
32
|
+
"rendered_html": "<div class=\"playground-content bg-lighter padding-20 padding-bottom-25\" style=\"width: 100%;\"><div class=\"panel panel-default panel-body shadow-default padding-25 max-width-500 rounded-large\"><div class=\"h4 margin-bottom-20 margin-top-0\">Package details</div><div class=\"display-flex align-items-center padding-20 gap-15 justify-content-around border border-color-lighter bg-lightest rounded rounded-large margin-bottom-15\"><div><div class=\"display-flex align-items-center gap-5 text-color-dark\"><span class=\"rioglyph rioglyph-parcel text-color-dark opacity-80\"></span><div class=\"\">Shipment</div></div><div class=\"text-medium padding-y-2\">34563456</div></div><div><div class=\"display-flex align-items-center gap-5 text-color-dark\"><span class=\"rioglyph rioglyph-weight text-color-dark opacity-80\"></span><div class=\"\">Weight</div></div><div class=\"text-medium padding-y-2\">1.3 Kg</div></div><div><div class=\"display-flex align-items-center gap-5 text-color-dark\"><span class=\"rioglyph rioglyph-ruler text-color-dark opacity-80\"></span><div class=\"\">Dimensions</div></div><div class=\"text-medium padding-y-2\">34 x 26 x 17 cm</div></div></div><div class=\"padding-10\"><div class=\"timeline\"><div class=\"timeline-element\"><div class=\"timeline-date\"><span class=\"badge badge-success padding-5 scale-90 margin-left-2\"><span class=\"rioglyph rioglyph-finish\"></span></span></div><div class=\"timeline-content\"><div class=\"text-medium margin-bottom-5\">The shipment is delivered to the recipient</div><div class=\"text-size-12 text-color-dark padding-y-5\">May 31th at 11:00 PM - 10117 Berlin, Germany</div></div></div><div class=\"timeline-element\"><div class=\"timeline-date\"><span class=\"badge badge-muted padding-5 scale-80 margin-left-2\"><span class=\"rioglyph rioglyph-ok\"></span></span></div><div class=\"timeline-content\"><div class=\"text-medium margin-bottom-5\">The shipment is loaded onto a truck for delivery</div><div class=\"text-size-12 text-color-dark padding-y-5\">May 30 at 1:45 PM - 75001 Paris, France</div></div></div><div class=\"timeline-element\"><div class=\"timeline-date\"><span class=\"badge badge-muted padding-5 scale-80 margin-left-2\"><span class=\"rioglyph rioglyph-ok\"></span></span></div><div class=\"timeline-content\"><div class=\"text-medium margin-bottom-5\">The shipment is sorted and prepared for further transport</div><div class=\"text-size-12 text-color-dark padding-y-5\">May 30 at 12:10 PM - 75001 Paris, France</div></div></div><div class=\"timeline-element\"><div class=\"timeline-date\"><span class=\"badge badge-muted padding-5 scale-80 margin-left-2\"><span class=\"rioglyph rioglyph-ok\"></span></span></div><div class=\"timeline-content\"><div class=\"text-medium\">The consignment has been picked up and is now at the terminal for further processing</div><div class=\"text-size-12 text-color-dark padding-y-5\">May 29 at 2:15 PM - 75001 Paris, France</div></div></div><div class=\"timeline-element\"><div class=\"timeline-date\"><span class=\"badge badge-muted padding-5 scale-80 margin-left-2\"><span class=\"rioglyph rioglyph-ok\"></span></span></div><div class=\"timeline-content\"><div class=\"text-medium\">We've received the first update on your shipment. While it's currently with the sender or on its way to the terminal, we'll be able to provide more detailed tracking information once it arrives in the receiving country.</div><div class=\"text-size-12 text-color-dark padding-y-5\">May 28 at 4:00 AM - SW1A 1AA London, United Kingdom</div></div></div></div></div></div></div>",
|
|
33
|
+
"tabs": [
|
|
34
|
+
{
|
|
35
|
+
"label": "HTML",
|
|
36
|
+
"language": "html",
|
|
37
|
+
"code": "<div class=\"panel panel-default panel-body shadow-default padding-25 max-width-500 rounded-large\">\n <div class=\"h4 margin-bottom-20 margin-top-0\">Package details</div>\n <div class=\"display-flex align-items-center padding-20 gap-15 justify-content-around border border-color-lighter bg-lightest rounded rounded-large margin-bottom-15\">\n <div>\n <div class=\"display-flex align-items-center gap-5 text-color-dark\">\n <span class=\"rioglyph rioglyph-parcel text-color-dark opacity-80\">\n </span>\n <div class=\"\">Shipment</div>\n </div>\n <div class=\"text-medium padding-y-2\">34563456</div>\n </div>\n <div>\n <div class=\"display-flex align-items-center gap-5 text-color-dark\">\n <span class=\"rioglyph rioglyph-weight text-color-dark opacity-80\">\n </span>\n <div class=\"\">Weight</div>\n </div>\n <div class=\"text-medium padding-y-2\">1.3 Kg</div>\n </div>\n <div>\n <div class=\"display-flex align-items-center gap-5 text-color-dark\">\n <span class=\"rioglyph rioglyph-ruler text-color-dark opacity-80\">\n </span>\n <div class=\"\">Dimensions</div>\n </div>\n <div class=\"text-medium padding-y-2\">34 x 26 x 17 cm</div>\n </div>\n </div>\n <div class=\"padding-10\">\n <div class=\"timeline\">\n <div class=\"timeline-element\">\n <div class=\"timeline-date\">\n <span class=\"badge badge-success padding-5 scale-90 margin-left-2\">\n <span class=\"rioglyph rioglyph-finish\">\n </span>\n </span>\n </div>\n <div class=\"timeline-content\">\n <div class=\"text-medium margin-bottom-5\">The shipment is delivered to the recipient</div>\n <div class=\"text-size-12 text-color-dark padding-y-5\">May 31th at 11:00 PM - 10117 Berlin, Germany</div>\n </div>\n </div>\n <div class=\"timeline-element\">\n <div class=\"timeline-date\">\n <span class=\"badge badge-muted padding-5 scale-80 margin-left-2\">\n <span class=\"rioglyph rioglyph-ok\">\n </span>\n </span>\n </div>\n <div class=\"timeline-content\">\n <div class=\"text-medium margin-bottom-5\">The shipment is loaded onto a truck for delivery</div>\n <div class=\"text-size-12 text-color-dark padding-y-5\">May 30 at 1:45 PM - 75001 Paris, France</div>\n </div>\n </div>\n <div class=\"timeline-element\">\n <div class=\"timeline-date\">\n <span class=\"badge badge-muted padding-5 scale-80 margin-left-2\">\n <span class=\"rioglyph rioglyph-ok\">\n </span>\n </span>\n </div>\n <div class=\"timeline-content\">\n <div class=\"text-medium margin-bottom-5\">The shipment is sorted and prepared for further transport</div>\n <div class=\"text-size-12 text-color-dark padding-y-5\">May 30 at 12:10 PM - 75001 Paris, France</div>\n </div>\n </div>\n <div class=\"timeline-element\">\n <div class=\"timeline-date\">\n <span class=\"badge badge-muted padding-5 scale-80 margin-left-2\">\n <span class=\"rioglyph rioglyph-ok\">\n </span>\n </span>\n </div>\n <div class=\"timeline-content\">\n <div class=\"text-medium\">The consignment has been picked up and is now at the terminal for further processing</div>\n <div class=\"text-size-12 text-color-dark padding-y-5\">May 29 at 2:15 PM - 75001 Paris, France</div>\n </div>\n </div>\n <div class=\"timeline-element\">\n <div class=\"timeline-date\">\n <span class=\"badge badge-muted padding-5 scale-80 margin-left-2\">\n <span class=\"rioglyph rioglyph-ok\">\n </span>\n </span>\n </div>\n <div class=\"timeline-content\">\n <div class=\"text-medium\">We've received the first update on your shipment. While it's currently with the sender or on its way to the terminal, we'll be able to provide more detailed tracking information once it arrives in the receiving country.</div>\n <div class=\"text-size-12 text-color-dark padding-y-5\">May 28 at 4:00 AM - SW1A 1AA London, United Kingdom</div>\n </div>\n </div>\n </div>\n </div>\n</div>"
|
|
38
|
+
}
|
|
39
|
+
]
|
|
40
|
+
}
|
|
41
|
+
]
|
|
42
|
+
}
|
|
43
|
+
],
|
|
44
|
+
"see_also": []
|
|
45
|
+
}
|
|
@@ -0,0 +1,163 @@
|
|
|
1
|
+
{
|
|
2
|
+
"metadata": {
|
|
3
|
+
"captured_at": "2025-11-21T12:07:30.872Z",
|
|
4
|
+
"source": "https://uikit.developers.rio.cloud/#components/timepicker",
|
|
5
|
+
"category": "Components",
|
|
6
|
+
"section": "Pickers",
|
|
7
|
+
"slug": "components/timepicker",
|
|
8
|
+
"version": "v1.13.2",
|
|
9
|
+
"hash_algorithm": "sha256",
|
|
10
|
+
"hash": "9a8636998c16d29398217c3cd30c3e6087fbcf86e36a6dd0932098c43b23291e"
|
|
11
|
+
},
|
|
12
|
+
"title": "TimePicker",
|
|
13
|
+
"lead": null,
|
|
14
|
+
"content": [
|
|
15
|
+
{
|
|
16
|
+
"heading": "TimePicker",
|
|
17
|
+
"body": "",
|
|
18
|
+
"examples": [
|
|
19
|
+
{
|
|
20
|
+
"caption": "Example 1",
|
|
21
|
+
"rendered_html": "<div class=\"playground-content bg-white padding-20 padding-bottom-25\" style=\"width: 100%;\"><div class=\"row max-width-600\"><div class=\"col-sm-6 form-group\"><label>Uncontrolled component</label><div class=\"TimePicker input-group\"><div class=\"form-control-feedback-wrapper\"><input class=\"TimePickerInput form-control\" value=\"\"></div><div class=\"TimePickerIncreaseButton input-group-addon\"><div class=\"text-color-gray hover-text-color-dark display-grid place-items-center cursor-pointer\"><div class=\"rioglyph rioglyph-chevron-left scale-90\"></div></div><div class=\"text-color-gray hover-text-color-dark margin-left-5 display-grid place-items-center cursor-pointer\"><div class=\"rioglyph rioglyph-chevron-right scale-90\"></div></div></div></div></div><div class=\"col-sm-6 form-group\"><label>With icon</label><div class=\"TimePicker input-group\"><span class=\"input-group-addon\"><span class=\"rioglyph rioglyph-time-alt\"></span></span><div class=\"form-control-feedback-wrapper\"><input class=\"TimePickerInput form-control\" value=\"\"></div><div class=\"TimePickerIncreaseButton input-group-addon\"><div class=\"text-color-gray hover-text-color-dark display-grid place-items-center cursor-pointer\"><div class=\"rioglyph rioglyph-chevron-left scale-90\"></div></div><div class=\"text-color-gray hover-text-color-dark margin-left-5 display-grid place-items-center cursor-pointer\"><div class=\"rioglyph rioglyph-chevron-right scale-90\"></div></div></div></div></div><div class=\"col-sm-6\"><div class=\"form-group\"><label>Controlled component without initial value</label><div class=\"TimePicker input-group\"><span class=\"input-group-addon\"><span class=\"rioglyph rioglyph-time-alt\"></span></span><div class=\"form-control-feedback-wrapper\"><input class=\"TimePickerInput form-control\" value=\"\"></div></div></div><div class=\"btn-toolbar\"><button type=\"button\" class=\"btn btn-default btn-component\" tabindex=\"0\">Set current time</button><button type=\"button\" class=\"btn btn-default btn-component\" tabindex=\"0\">Clear time</button></div></div></div></div>",
|
|
22
|
+
"tabs": [
|
|
23
|
+
{
|
|
24
|
+
"label": "React",
|
|
25
|
+
"language": "tsx",
|
|
26
|
+
"code": "import { useState } from 'react';\n\nimport TimePicker from '@rio-cloud/rio-uikit/TimePicker';\nimport Notification from '@rio-cloud/rio-uikit/Notification';\nimport Button from '@rio-cloud/rio-uikit/Button';\n\nconst getCurrentTime = () => {\n const getPadded = (value: number) => (value >= 10 ? value : `0${value}`);\n const date = new Date();\n const hours = date.getHours();\n const minutes = date.getMinutes();\n return `${getPadded(hours)}:${getPadded(minutes)}`;\n};\n\nexport default () => {\n const [timeValue, setTimeValue] = useState('');\n\n const notifyTime = (value: string) => Notification.info(`Entered time: ${value}`);\n\n const handleChangeTime = (value: string) => {\n setTimeValue(value);\n notifyTime(value);\n };\n\n return (\n <div className='row max-width-600'>\n <div className='col-sm-6 form-group'>\n <label>Uncontrolled component</label>\n <TimePicker onChange={notifyTime} />\n </div>\n <div className='col-sm-6 form-group'>\n <label>With icon</label>\n <TimePicker onChange={notifyTime} showIcon />\n </div>\n <div className='col-sm-6'>\n <div className='form-group'>\n <label>Controlled component without initial value</label>\n <TimePicker value={timeValue} onChange={handleChangeTime} showIcon />\n </div>\n <div className='btn-toolbar'>\n <Button onClick={() => setTimeValue(getCurrentTime())}>Set current time</Button>\n <Button onClick={() => setTimeValue('')}>Clear time</Button>\n </div>\n </div>\n </div>\n );\n};"
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
"label": "HTML",
|
|
30
|
+
"language": "html",
|
|
31
|
+
"code": "<div class=\"row max-width-600\">\n <div class=\"col-sm-6 form-group\">\n <label>Uncontrolled component</label>\n <div class=\"TimePicker input-group\">\n <div class=\"form-control-feedback-wrapper\">\n <input class=\"TimePickerInput form-control\" value=\"\">\n </div>\n <div class=\"TimePickerIncreaseButton input-group-addon\">\n <div class=\"text-color-gray hover-text-color-dark display-grid place-items-center cursor-pointer\">\n <div class=\"rioglyph rioglyph-chevron-left scale-90\">\n </div>\n </div>\n <div class=\"text-color-gray hover-text-color-dark margin-left-5 display-grid place-items-center cursor-pointer\">\n <div class=\"rioglyph rioglyph-chevron-right scale-90\">\n </div>\n </div>\n </div>\n </div>\n </div>\n <div class=\"col-sm-6 form-group\">\n <label>With icon</label>\n <div class=\"TimePicker input-group\">\n <span class=\"input-group-addon\">\n <span class=\"rioglyph rioglyph-time-alt\">\n </span>\n </span>\n <div class=\"form-control-feedback-wrapper\">\n <input class=\"TimePickerInput form-control\" value=\"\">\n </div>\n <div class=\"TimePickerIncreaseButton input-group-addon\">\n <div class=\"text-color-gray hover-text-color-dark display-grid place-items-center cursor-pointer\">\n <div class=\"rioglyph rioglyph-chevron-left scale-90\">\n </div>\n </div>\n <div class=\"text-color-gray hover-text-color-dark margin-left-5 display-grid place-items-center cursor-pointer\">\n <div class=\"rioglyph rioglyph-chevron-right scale-90\">\n </div>\n </div>\n </div>\n </div>\n </div>\n <div class=\"col-sm-6\">\n <div class=\"form-group\">\n <label>Controlled component without initial value</label>\n <div class=\"TimePicker input-group\">\n <span class=\"input-group-addon\">\n <span class=\"rioglyph rioglyph-time-alt\">\n </span>\n </span>\n <div class=\"form-control-feedback-wrapper\">\n <input class=\"TimePickerInput form-control\" value=\"\">\n </div>\n </div>\n </div>\n <div class=\"btn-toolbar\">\n <button type=\"button\" class=\"btn btn-default btn-component\" tabindex=\"0\">Set current time</button>\n <button type=\"button\" class=\"btn btn-default btn-component\" tabindex=\"0\">Clear time</button>\n </div>\n </div>\n</div>"
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
"label": "Props",
|
|
35
|
+
"language": "json",
|
|
36
|
+
"code": null,
|
|
37
|
+
"props": [
|
|
38
|
+
{
|
|
39
|
+
"heading": null,
|
|
40
|
+
"rows": [
|
|
41
|
+
{
|
|
42
|
+
"name": "value",
|
|
43
|
+
"type": "string",
|
|
44
|
+
"default": "",
|
|
45
|
+
"description": "Value of the time as string. Note, when value is given the component is treated as controlled."
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
"name": "onChange",
|
|
49
|
+
"type": "Function",
|
|
50
|
+
"default": "() => {}",
|
|
51
|
+
"description": "Callback function when the value changes and is a valid time format. If not it handles the state internally until the time is valid and filled."
|
|
52
|
+
},
|
|
53
|
+
{
|
|
54
|
+
"name": "alwaysShowMask",
|
|
55
|
+
"type": "Boolean",
|
|
56
|
+
"default": "true",
|
|
57
|
+
"description": "Defines whether to always show the input mask placeholder."
|
|
58
|
+
},
|
|
59
|
+
{
|
|
60
|
+
"name": "showIcon",
|
|
61
|
+
"type": "Boolean",
|
|
62
|
+
"default": "false",
|
|
63
|
+
"description": "Defines whether or not to show the input icon."
|
|
64
|
+
},
|
|
65
|
+
{
|
|
66
|
+
"name": "className",
|
|
67
|
+
"type": "String",
|
|
68
|
+
"default": "",
|
|
69
|
+
"description": "Additional classes to be set on the wrapper element."
|
|
70
|
+
},
|
|
71
|
+
{
|
|
72
|
+
"name": "inputProps",
|
|
73
|
+
"type": "Object",
|
|
74
|
+
"default": "",
|
|
75
|
+
"description": "Additional props to be passed on to the underlying input component."
|
|
76
|
+
},
|
|
77
|
+
{
|
|
78
|
+
"name": "└className",
|
|
79
|
+
"type": "String",
|
|
80
|
+
"default": "",
|
|
81
|
+
"description": "Additional classes to be set on the input element."
|
|
82
|
+
}
|
|
83
|
+
]
|
|
84
|
+
}
|
|
85
|
+
]
|
|
86
|
+
}
|
|
87
|
+
]
|
|
88
|
+
},
|
|
89
|
+
{
|
|
90
|
+
"caption": "Example 2",
|
|
91
|
+
"rendered_html": "<div class=\"playground-content bg-white padding-20 padding-bottom-25\" style=\"width: 100%;\"><div class=\"max-width-600 height-100 display-flex gap-25\"><div class=\"flex-1-1 max-width-150 form-group has-feedback has-error\"><label>Default</label><div class=\"TimePicker input-group\"><div class=\"form-control-feedback-wrapper\"><input class=\"TimePickerInput form-control\" value=\"\"><span class=\"form-control-feedback rioglyph rioglyph-error-sign\"></span><span class=\"help-block white-space-normal\"><span>Please insert a valid time</span></span></div><div class=\"TimePickerIncreaseButton input-group-addon\"><div class=\"text-color-gray hover-text-color-dark display-grid place-items-center cursor-pointer\"><div class=\"rioglyph rioglyph-chevron-left scale-90\"></div></div><div class=\"text-color-gray hover-text-color-dark margin-left-5 display-grid place-items-center cursor-pointer\"><div class=\"rioglyph rioglyph-chevron-right scale-90\"></div></div></div></div></div><div class=\"flex-1-1 max-width-150 form-group has-feedback has-warning\"><label>With icon</label><div class=\"TimePicker input-group\"><span class=\"input-group-addon\"><span class=\"rioglyph rioglyph-time-alt\"></span></span><div class=\"form-control-feedback-wrapper\"><input class=\"TimePickerInput form-control\" value=\"\"><span class=\"form-control-feedback rioglyph rioglyph-warning-sign\"></span><span class=\"help-block white-space-nowrap\"><span>Just a normal warning message</span></span></div><div class=\"TimePickerIncreaseButton input-group-addon\"><div class=\"text-color-gray hover-text-color-dark display-grid place-items-center cursor-pointer\"><div class=\"rioglyph rioglyph-chevron-left scale-90\"></div></div><div class=\"text-color-gray hover-text-color-dark margin-left-5 display-grid place-items-center cursor-pointer\"><div class=\"rioglyph rioglyph-chevron-right scale-90\"></div></div></div></div></div></div></div>",
|
|
92
|
+
"tabs": [
|
|
93
|
+
{
|
|
94
|
+
"label": "React",
|
|
95
|
+
"language": "tsx",
|
|
96
|
+
"code": "import TimePicker from '@rio-cloud/rio-uikit/TimePicker';\nimport Notification from '@rio-cloud/rio-uikit/Notification';\n\nexport default () => {\n const notifyTime = (value: string) => Notification.info(`Entered time: ${value}`);\n\n return (\n <div className='max-width-600 height-100 display-flex gap-25'>\n <div className='flex-1-1 max-width-150 form-group has-feedback has-error'>\n <label>Default</label>\n <TimePicker errorMessage='Please insert a valid time' />\n </div>\n <div className='flex-1-1 max-width-150 form-group has-feedback has-warning'>\n <label>With icon</label>\n <TimePicker showIcon warningMessage='Just a normal warning message' messageWhiteSpace='nowrap' />\n </div>\n </div>\n );\n};"
|
|
97
|
+
},
|
|
98
|
+
{
|
|
99
|
+
"label": "HTML",
|
|
100
|
+
"language": "html",
|
|
101
|
+
"code": "<div class=\"max-width-600 height-100 display-flex gap-25\">\n <div class=\"flex-1-1 max-width-150 form-group has-feedback has-error\">\n <label>Default</label>\n <div class=\"TimePicker input-group\">\n <div class=\"form-control-feedback-wrapper\">\n <input class=\"TimePickerInput form-control\" value=\"\">\n <span class=\"form-control-feedback rioglyph rioglyph-error-sign\">\n </span>\n <span class=\"help-block white-space-normal\">\n <span>Please insert a valid time</span>\n </span>\n </div>\n <div class=\"TimePickerIncreaseButton input-group-addon\">\n <div class=\"text-color-gray hover-text-color-dark display-grid place-items-center cursor-pointer\">\n <div class=\"rioglyph rioglyph-chevron-left scale-90\">\n </div>\n </div>\n <div class=\"text-color-gray hover-text-color-dark margin-left-5 display-grid place-items-center cursor-pointer\">\n <div class=\"rioglyph rioglyph-chevron-right scale-90\">\n </div>\n </div>\n </div>\n </div>\n </div>\n <div class=\"flex-1-1 max-width-150 form-group has-feedback has-warning\">\n <label>With icon</label>\n <div class=\"TimePicker input-group\">\n <span class=\"input-group-addon\">\n <span class=\"rioglyph rioglyph-time-alt\">\n </span>\n </span>\n <div class=\"form-control-feedback-wrapper\">\n <input class=\"TimePickerInput form-control\" value=\"\">\n <span class=\"form-control-feedback rioglyph rioglyph-warning-sign\">\n </span>\n <span class=\"help-block white-space-nowrap\">\n <span>Just a normal warning message</span>\n </span>\n </div>\n <div class=\"TimePickerIncreaseButton input-group-addon\">\n <div class=\"text-color-gray hover-text-color-dark display-grid place-items-center cursor-pointer\">\n <div class=\"rioglyph rioglyph-chevron-left scale-90\">\n </div>\n </div>\n <div class=\"text-color-gray hover-text-color-dark margin-left-5 display-grid place-items-center cursor-pointer\">\n <div class=\"rioglyph rioglyph-chevron-right scale-90\">\n </div>\n </div>\n </div>\n </div>\n </div>\n</div>"
|
|
102
|
+
},
|
|
103
|
+
{
|
|
104
|
+
"label": "Props",
|
|
105
|
+
"language": "json",
|
|
106
|
+
"code": null,
|
|
107
|
+
"props": [
|
|
108
|
+
{
|
|
109
|
+
"heading": null,
|
|
110
|
+
"rows": [
|
|
111
|
+
{
|
|
112
|
+
"name": "value",
|
|
113
|
+
"type": "string",
|
|
114
|
+
"default": "",
|
|
115
|
+
"description": "Value of the time as string. Note, when value is given the component is treated as controlled."
|
|
116
|
+
},
|
|
117
|
+
{
|
|
118
|
+
"name": "onChange",
|
|
119
|
+
"type": "Function",
|
|
120
|
+
"default": "() => {}",
|
|
121
|
+
"description": "Callback function when the value changes and is a valid time format. If not it handles the state internally until the time is valid and filled."
|
|
122
|
+
},
|
|
123
|
+
{
|
|
124
|
+
"name": "alwaysShowMask",
|
|
125
|
+
"type": "Boolean",
|
|
126
|
+
"default": "true",
|
|
127
|
+
"description": "Defines whether to always show the input mask placeholder."
|
|
128
|
+
},
|
|
129
|
+
{
|
|
130
|
+
"name": "showIcon",
|
|
131
|
+
"type": "Boolean",
|
|
132
|
+
"default": "false",
|
|
133
|
+
"description": "Defines whether or not to show the input icon."
|
|
134
|
+
},
|
|
135
|
+
{
|
|
136
|
+
"name": "className",
|
|
137
|
+
"type": "String",
|
|
138
|
+
"default": "",
|
|
139
|
+
"description": "Additional classes to be set on the wrapper element."
|
|
140
|
+
},
|
|
141
|
+
{
|
|
142
|
+
"name": "inputProps",
|
|
143
|
+
"type": "Object",
|
|
144
|
+
"default": "",
|
|
145
|
+
"description": "Additional props to be passed on to the underlying input component."
|
|
146
|
+
},
|
|
147
|
+
{
|
|
148
|
+
"name": "└className",
|
|
149
|
+
"type": "String",
|
|
150
|
+
"default": "",
|
|
151
|
+
"description": "Additional classes to be set on the input element."
|
|
152
|
+
}
|
|
153
|
+
]
|
|
154
|
+
}
|
|
155
|
+
]
|
|
156
|
+
}
|
|
157
|
+
]
|
|
158
|
+
}
|
|
159
|
+
]
|
|
160
|
+
}
|
|
161
|
+
],
|
|
162
|
+
"see_also": []
|
|
163
|
+
}
|
|
@@ -0,0 +1,247 @@
|
|
|
1
|
+
{
|
|
2
|
+
"metadata": {
|
|
3
|
+
"captured_at": "2025-11-21T12:07:18.773Z",
|
|
4
|
+
"source": "https://uikit.developers.rio.cloud/#components/toggleButton",
|
|
5
|
+
"category": "Components",
|
|
6
|
+
"section": "Interaction",
|
|
7
|
+
"slug": "components/togglebutton",
|
|
8
|
+
"version": "v1.13.2",
|
|
9
|
+
"hash_algorithm": "sha256",
|
|
10
|
+
"hash": "5bb2f689eebb26646f489593569bf1018e04fd758dc6381bed101dd3b9e3a96f"
|
|
11
|
+
},
|
|
12
|
+
"title": "ToggleButton",
|
|
13
|
+
"lead": "This toggle button is based on the button component that can be used directly.",
|
|
14
|
+
"content": [
|
|
15
|
+
{
|
|
16
|
+
"heading": "ToggleButton",
|
|
17
|
+
"body": "",
|
|
18
|
+
"examples": [
|
|
19
|
+
{
|
|
20
|
+
"caption": "Default ToggleButtons",
|
|
21
|
+
"rendered_html": "<div class=\"playground-content bg-white padding-20 padding-bottom-25\" style=\"width: 100%;\"><div><div class=\"text-color-dark max-width-100pct text-size-12 display-inline-block margin-bottom-5\">Default ToggleButtons</div><div class=\"btn-toolbar\"><button type=\"button\" class=\"btn btn-default btn-toggle btn-component\" tabindex=\"0\">btn-default (untoggled)</button><button type=\"button\" class=\"btn btn-default btn-toggle active btn-component\" tabindex=\"0\">btn-default (toggled)</button><button type=\"button\" class=\"btn btn-primary btn-toggle btn-component\" tabindex=\"0\">btn-primary (untoggled)</button></div><div class=\"text-color-dark max-width-100pct text-size-12 display-inline-block margin-bottom-5 margin-top-15\">Other Styles</div><div class=\"btn-toolbar\"><button type=\"button\" class=\"btn btn-success btn-toggle btn-icon-only btn-component\" tabindex=\"0\"><span class=\"rioglyph rioglyph-thumbs-up\"></span></button><button type=\"button\" class=\"btn btn-info btn-toggle btn-icon-only btn-component\" tabindex=\"0\"><span class=\"rioglyph rioglyph-status-driving\"></span></button><button type=\"button\" class=\"btn btn-warning btn-toggle btn-icon-only btn-component\" tabindex=\"0\"><span class=\"rioglyph rioglyph-warning-sign\"></span></button><button type=\"button\" class=\"btn btn-danger btn-toggle btn-icon-only btn-component\" tabindex=\"0\"><span class=\"rioglyph rioglyph-error-sign\"></span></button></div></div></div>",
|
|
22
|
+
"tabs": [
|
|
23
|
+
{
|
|
24
|
+
"label": "React",
|
|
25
|
+
"language": "tsx",
|
|
26
|
+
"code": "import ToggleButton from '@rio-cloud/rio-uikit/ToggleButton';\nimport Notification from '@rio-cloud/rio-uikit/Notification';\nimport FormLabel from '@rio-cloud/rio-uikit/FormLabel';\n\nconst handleClick = (response: boolean) => Notification.info(`Toggled: ${response}`);\n\nexport default () => (\n <div>\n <FormLabel>Default ToggleButtons</FormLabel>\n <div className='btn-toolbar'>\n <ToggleButton onClick={handleClick}>btn-default (untoggled)</ToggleButton>\n <ToggleButton active onClick={handleClick}>\n btn-default (toggled)\n </ToggleButton>\n <ToggleButton bsStyle='primary' onClick={handleClick}>\n btn-primary (untoggled)\n </ToggleButton>\n </div>\n <FormLabel className='margin-top-15'>Other Styles</FormLabel>\n <div className='btn-toolbar'>\n <ToggleButton bsStyle='success' iconName='rioglyph-thumbs-up' iconOnly />\n <ToggleButton bsStyle='info' iconName='rioglyph-status-driving' iconOnly />\n <ToggleButton bsStyle='warning' iconName='rioglyph-warning-sign' iconOnly />\n <ToggleButton bsStyle='danger' iconName='rioglyph-error-sign' iconOnly />\n </div>\n </div>\n);"
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
"label": "HTML",
|
|
30
|
+
"language": "html",
|
|
31
|
+
"code": "<div>\n <div class=\"text-color-dark max-width-100pct text-size-12 display-inline-block margin-bottom-5\">Default ToggleButtons</div>\n <div class=\"btn-toolbar\">\n <button type=\"button\" class=\"btn btn-default btn-toggle btn-component\" tabindex=\"0\">btn-default (untoggled)</button>\n <button type=\"button\" class=\"btn btn-default btn-toggle active btn-component\" tabindex=\"0\">btn-default (toggled)</button>\n <button type=\"button\" class=\"btn btn-primary btn-toggle btn-component\" tabindex=\"0\">btn-primary (untoggled)</button>\n </div>\n <div class=\"text-color-dark max-width-100pct text-size-12 display-inline-block margin-bottom-5 margin-top-15\">Other Styles</div>\n <div class=\"btn-toolbar\">\n <button type=\"button\" class=\"btn btn-success btn-toggle btn-icon-only btn-component\" tabindex=\"0\">\n <span class=\"rioglyph rioglyph-thumbs-up\">\n </span>\n </button>\n <button type=\"button\" class=\"btn btn-info btn-toggle btn-icon-only btn-component\" tabindex=\"0\">\n <span class=\"rioglyph rioglyph-status-driving\">\n </span>\n </button>\n <button type=\"button\" class=\"btn btn-warning btn-toggle btn-icon-only btn-component\" tabindex=\"0\">\n <span class=\"rioglyph rioglyph-warning-sign\">\n </span>\n </button>\n <button type=\"button\" class=\"btn btn-danger btn-toggle btn-icon-only btn-component\" tabindex=\"0\">\n <span class=\"rioglyph rioglyph-error-sign\">\n </span>\n </button>\n </div>\n</div>"
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
"label": "Props",
|
|
35
|
+
"language": "json",
|
|
36
|
+
"code": null,
|
|
37
|
+
"props": [
|
|
38
|
+
{
|
|
39
|
+
"heading": null,
|
|
40
|
+
"rows": [
|
|
41
|
+
{
|
|
42
|
+
"name": "disabled",
|
|
43
|
+
"type": "Boolean",
|
|
44
|
+
"default": "false",
|
|
45
|
+
"description": "Set the button disabled."
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
"name": "active",
|
|
49
|
+
"type": "Boolean",
|
|
50
|
+
"default": "false",
|
|
51
|
+
"description": "Set the button toggled. Should be used in combination with \"asToggle\" prop."
|
|
52
|
+
},
|
|
53
|
+
{
|
|
54
|
+
"name": "asToggle",
|
|
55
|
+
"type": "Boolean",
|
|
56
|
+
"default": "false",
|
|
57
|
+
"description": "Use the button as a toggle button. The toggle state can be controlled viw the \"active\" prop."
|
|
58
|
+
},
|
|
59
|
+
{
|
|
60
|
+
"name": "iconOnly",
|
|
61
|
+
"type": "Boolean",
|
|
62
|
+
"default": "false",
|
|
63
|
+
"description": "Use when the content of the button is an icon only to adapt the button spacing accordingly."
|
|
64
|
+
},
|
|
65
|
+
{
|
|
66
|
+
"name": "iconName",
|
|
67
|
+
"type": "String",
|
|
68
|
+
"default": "",
|
|
69
|
+
"description": "Optional rio-glyph icon name that comes in handy for icon only buttons for not adding a span tag for the icon which reduces boilerplate code."
|
|
70
|
+
},
|
|
71
|
+
{
|
|
72
|
+
"name": "iconRight",
|
|
73
|
+
"type": "Boolean",
|
|
74
|
+
"default": "false",
|
|
75
|
+
"description": "Adds right side spacing for an icon. This should be used when having navigation buttons that use an icon on the right side."
|
|
76
|
+
},
|
|
77
|
+
{
|
|
78
|
+
"name": "multiline",
|
|
79
|
+
"type": "Boolean",
|
|
80
|
+
"default": "false",
|
|
81
|
+
"description": "Defines whether the button text break into multiple lines when the button space exceeds. Multiline buttons should be used as exception only."
|
|
82
|
+
},
|
|
83
|
+
{
|
|
84
|
+
"name": "block",
|
|
85
|
+
"type": "Boolean",
|
|
86
|
+
"default": "false",
|
|
87
|
+
"description": "Defines whether the button takes up the full width of the parent element."
|
|
88
|
+
},
|
|
89
|
+
{
|
|
90
|
+
"name": "onClick",
|
|
91
|
+
"type": "Function",
|
|
92
|
+
"default": "() => {}",
|
|
93
|
+
"description": "Callback function triggered when clicking the button."
|
|
94
|
+
},
|
|
95
|
+
{
|
|
96
|
+
"name": "bsStyle",
|
|
97
|
+
"type": "String",
|
|
98
|
+
"default": "default",
|
|
99
|
+
"description": "Sets the button style. Possible values are: default, primary, info, warning, danger, success, muted-filled and muted or Button.DEFAULT, Button.PRIMARY, Button.INFO, Button.WARNING, Button.DANGER, Button.SUCCESS, Button.MUTED_FILLED and Button.MUTED"
|
|
100
|
+
},
|
|
101
|
+
{
|
|
102
|
+
"name": "bsSize",
|
|
103
|
+
"type": "String",
|
|
104
|
+
"default": "",
|
|
105
|
+
"description": "Sets the button size. Possible values are: xs, sm, md and lg or Button.XS, Button.SM, Button.MD and Button.LG"
|
|
106
|
+
},
|
|
107
|
+
{
|
|
108
|
+
"name": "variant",
|
|
109
|
+
"type": "String",
|
|
110
|
+
"default": "",
|
|
111
|
+
"description": "Sets the button variant. Possible values are: link, link-inline, outline and action or Button.VARIANT_LINK, Button.VARIANT_LINK_INLINE, Button.VARIANT_OUTLINE and Button.VARIANT_ACTION"
|
|
112
|
+
},
|
|
113
|
+
{
|
|
114
|
+
"name": "className",
|
|
115
|
+
"type": "String",
|
|
116
|
+
"default": "",
|
|
117
|
+
"description": "Additional classes to be set on the button element."
|
|
118
|
+
},
|
|
119
|
+
{
|
|
120
|
+
"name": "children",
|
|
121
|
+
"type": "any",
|
|
122
|
+
"default": "",
|
|
123
|
+
"description": "Any element to be rendered on the button."
|
|
124
|
+
}
|
|
125
|
+
]
|
|
126
|
+
}
|
|
127
|
+
]
|
|
128
|
+
}
|
|
129
|
+
]
|
|
130
|
+
},
|
|
131
|
+
{
|
|
132
|
+
"caption": "Controlled ToggleButton",
|
|
133
|
+
"rendered_html": "<div class=\"playground-content bg-white padding-20 padding-bottom-25\" style=\"width: 100%;\"><div><div class=\"text-color-dark max-width-100pct text-size-12 display-inline-block margin-bottom-5\">Controlled ToggleButton</div><div class=\"margin-bottom-25\"><button type=\"button\" class=\"btn btn-default btn-toggle btn-icon-only btn-component\" tabindex=\"0\"><span class=\"rioglyph rioglyph-cards-table\"></span></button></div><button type=\"button\" class=\"btn btn-default btn-component\" tabindex=\"0\">Control the toggle</button></div></div>",
|
|
134
|
+
"tabs": [
|
|
135
|
+
{
|
|
136
|
+
"label": "React",
|
|
137
|
+
"language": "tsx",
|
|
138
|
+
"code": "import { useState } from 'react';\n\nimport ToggleButton from '@rio-cloud/rio-uikit/ToggleButton';\nimport Button from '@rio-cloud/rio-uikit/Button';\nimport Notification from '@rio-cloud/rio-uikit/Notification';\nimport FormLabel from '@rio-cloud/rio-uikit/FormLabel';\n\nconst handleClick = (response: boolean) => Notification.info(`Toggled: ${response}`);\n\nexport default () => {\n const [isToggled, setIsToggled] = useState(false);\n\n return (\n <div>\n <FormLabel>Controlled ToggleButton</FormLabel>\n <div className='margin-bottom-25'>\n <ToggleButton active={isToggled} iconName='rioglyph-cards-table' iconOnly />\n </div>\n <Button onClick={() => setIsToggled(!isToggled)}>Control the toggle</Button>\n </div>\n );\n};"
|
|
139
|
+
},
|
|
140
|
+
{
|
|
141
|
+
"label": "HTML",
|
|
142
|
+
"language": "html",
|
|
143
|
+
"code": "<div>\n <div class=\"text-color-dark max-width-100pct text-size-12 display-inline-block margin-bottom-5\">Controlled ToggleButton</div>\n <div class=\"margin-bottom-25\">\n <button type=\"button\" class=\"btn btn-default btn-toggle btn-icon-only btn-component\" tabindex=\"0\">\n <span class=\"rioglyph rioglyph-cards-table\">\n </span>\n </button>\n </div>\n <button type=\"button\" class=\"btn btn-default btn-component\" tabindex=\"0\">Control the toggle</button>\n</div>"
|
|
144
|
+
},
|
|
145
|
+
{
|
|
146
|
+
"label": "Props",
|
|
147
|
+
"language": "json",
|
|
148
|
+
"code": null,
|
|
149
|
+
"props": [
|
|
150
|
+
{
|
|
151
|
+
"heading": null,
|
|
152
|
+
"rows": [
|
|
153
|
+
{
|
|
154
|
+
"name": "disabled",
|
|
155
|
+
"type": "Boolean",
|
|
156
|
+
"default": "false",
|
|
157
|
+
"description": "Set the button disabled."
|
|
158
|
+
},
|
|
159
|
+
{
|
|
160
|
+
"name": "active",
|
|
161
|
+
"type": "Boolean",
|
|
162
|
+
"default": "false",
|
|
163
|
+
"description": "Set the button toggled. Should be used in combination with \"asToggle\" prop."
|
|
164
|
+
},
|
|
165
|
+
{
|
|
166
|
+
"name": "asToggle",
|
|
167
|
+
"type": "Boolean",
|
|
168
|
+
"default": "false",
|
|
169
|
+
"description": "Use the button as a toggle button. The toggle state can be controlled viw the \"active\" prop."
|
|
170
|
+
},
|
|
171
|
+
{
|
|
172
|
+
"name": "iconOnly",
|
|
173
|
+
"type": "Boolean",
|
|
174
|
+
"default": "false",
|
|
175
|
+
"description": "Use when the content of the button is an icon only to adapt the button spacing accordingly."
|
|
176
|
+
},
|
|
177
|
+
{
|
|
178
|
+
"name": "iconName",
|
|
179
|
+
"type": "String",
|
|
180
|
+
"default": "",
|
|
181
|
+
"description": "Optional rio-glyph icon name that comes in handy for icon only buttons for not adding a span tag for the icon which reduces boilerplate code."
|
|
182
|
+
},
|
|
183
|
+
{
|
|
184
|
+
"name": "iconRight",
|
|
185
|
+
"type": "Boolean",
|
|
186
|
+
"default": "false",
|
|
187
|
+
"description": "Adds right side spacing for an icon. This should be used when having navigation buttons that use an icon on the right side."
|
|
188
|
+
},
|
|
189
|
+
{
|
|
190
|
+
"name": "multiline",
|
|
191
|
+
"type": "Boolean",
|
|
192
|
+
"default": "false",
|
|
193
|
+
"description": "Defines whether the button text break into multiple lines when the button space exceeds. Multiline buttons should be used as exception only."
|
|
194
|
+
},
|
|
195
|
+
{
|
|
196
|
+
"name": "block",
|
|
197
|
+
"type": "Boolean",
|
|
198
|
+
"default": "false",
|
|
199
|
+
"description": "Defines whether the button takes up the full width of the parent element."
|
|
200
|
+
},
|
|
201
|
+
{
|
|
202
|
+
"name": "onClick",
|
|
203
|
+
"type": "Function",
|
|
204
|
+
"default": "() => {}",
|
|
205
|
+
"description": "Callback function triggered when clicking the button."
|
|
206
|
+
},
|
|
207
|
+
{
|
|
208
|
+
"name": "bsStyle",
|
|
209
|
+
"type": "String",
|
|
210
|
+
"default": "default",
|
|
211
|
+
"description": "Sets the button style. Possible values are: default, primary, info, warning, danger, success, muted-filled and muted or Button.DEFAULT, Button.PRIMARY, Button.INFO, Button.WARNING, Button.DANGER, Button.SUCCESS, Button.MUTED_FILLED and Button.MUTED"
|
|
212
|
+
},
|
|
213
|
+
{
|
|
214
|
+
"name": "bsSize",
|
|
215
|
+
"type": "String",
|
|
216
|
+
"default": "",
|
|
217
|
+
"description": "Sets the button size. Possible values are: xs, sm, md and lg or Button.XS, Button.SM, Button.MD and Button.LG"
|
|
218
|
+
},
|
|
219
|
+
{
|
|
220
|
+
"name": "variant",
|
|
221
|
+
"type": "String",
|
|
222
|
+
"default": "",
|
|
223
|
+
"description": "Sets the button variant. Possible values are: link, link-inline, outline and action or Button.VARIANT_LINK, Button.VARIANT_LINK_INLINE, Button.VARIANT_OUTLINE and Button.VARIANT_ACTION"
|
|
224
|
+
},
|
|
225
|
+
{
|
|
226
|
+
"name": "className",
|
|
227
|
+
"type": "String",
|
|
228
|
+
"default": "",
|
|
229
|
+
"description": "Additional classes to be set on the button element."
|
|
230
|
+
},
|
|
231
|
+
{
|
|
232
|
+
"name": "children",
|
|
233
|
+
"type": "any",
|
|
234
|
+
"default": "",
|
|
235
|
+
"description": "Any element to be rendered on the button."
|
|
236
|
+
}
|
|
237
|
+
]
|
|
238
|
+
}
|
|
239
|
+
]
|
|
240
|
+
}
|
|
241
|
+
]
|
|
242
|
+
}
|
|
243
|
+
]
|
|
244
|
+
}
|
|
245
|
+
],
|
|
246
|
+
"see_also": []
|
|
247
|
+
}
|