@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,583 @@
|
|
|
1
|
+
{
|
|
2
|
+
"metadata": {
|
|
3
|
+
"captured_at": "2025-11-21T12:07:10.960Z",
|
|
4
|
+
"source": "https://uikit.developers.rio.cloud/#components/button",
|
|
5
|
+
"category": "Components",
|
|
6
|
+
"section": "Interaction",
|
|
7
|
+
"slug": "components/button",
|
|
8
|
+
"version": "v1.13.2",
|
|
9
|
+
"hash_algorithm": "sha256",
|
|
10
|
+
"hash": "525d0a136992f512074697c60ac4c83df0d6bcbdb3191ef8de97eaf138fe9311"
|
|
11
|
+
},
|
|
12
|
+
"title": "Button",
|
|
13
|
+
"lead": "The button component is the React equivalent to the normal HTML button with some To check out the HTML version click here: Buttons",
|
|
14
|
+
"content": [
|
|
15
|
+
{
|
|
16
|
+
"heading": "Button",
|
|
17
|
+
"body": "",
|
|
18
|
+
"examples": [
|
|
19
|
+
{
|
|
20
|
+
"caption": "Standard buttons",
|
|
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\">Standard buttons</div><div class=\"btn-toolbar\"><button type=\"button\" class=\"btn btn-default btn-component\" tabindex=\"0\"><span class=\"rioglyph rioglyph-truck\"></span>Default</button><button type=\"button\" class=\"btn btn-primary btn-component\" tabindex=\"0\"><span class=\"rioglyph rioglyph-heart\"></span>Primary</button><button type=\"button\" class=\"btn btn-secondary btn-component\" tabindex=\"0\"><span class=\"rioglyph rioglyph-poi\"></span>Secondary</button><button type=\"button\" class=\"btn btn-success btn-component\" tabindex=\"0\"><span class=\"rioglyph rioglyph-thumbs-up\"></span>Success</button><button type=\"button\" class=\"btn btn-info btn-component\" tabindex=\"0\"><span class=\"rioglyph rioglyph-info-sign\"></span>Info</button><button type=\"button\" class=\"btn btn-warning btn-component\" tabindex=\"0\"><span class=\"rioglyph rioglyph-warning-sign\"></span>Warning</button><button type=\"button\" class=\"btn btn-danger btn-component\" tabindex=\"0\"><span class=\"rioglyph rioglyph-error-sign\"></span>Danger</button><button type=\"button\" class=\"btn btn-muted-filled btn-component\" tabindex=\"0\"><span class=\"rioglyph rioglyph-cog\"></span>Muted filled</button><button type=\"button\" class=\"btn btn-muted btn-component\" tabindex=\"0\"><span class=\"rioglyph rioglyph-heart\"></span>Muted</button></div><div class=\"text-color-dark max-width-100pct text-size-12 display-inline-block margin-bottom-5 margin-top-15\">Disabled buttons</div><div class=\"btn-toolbar\"><button type=\"button\" class=\"btn btn-default btn-component\" disabled=\"\" tabindex=\"0\"><span class=\"rioglyph rioglyph-truck\"></span>Default</button><button type=\"button\" class=\"btn btn-primary btn-component\" disabled=\"\" tabindex=\"0\"><span class=\"rioglyph rioglyph-heart\"></span>Primary</button><button type=\"button\" class=\"btn btn-secondary btn-component\" disabled=\"\" tabindex=\"0\"><span class=\"rioglyph rioglyph-poi\"></span>Secondary</button><button type=\"button\" class=\"btn btn-success btn-component\" disabled=\"\" tabindex=\"0\"><span class=\"rioglyph rioglyph-thumbs-up\"></span>Success</button><button type=\"button\" class=\"btn btn-info btn-component\" disabled=\"\" tabindex=\"0\"><span class=\"rioglyph rioglyph-info-sign\"></span>Info</button><button type=\"button\" class=\"btn btn-warning btn-component\" disabled=\"\" tabindex=\"0\"><span class=\"rioglyph rioglyph-warning-sign\"></span>Warning</button><button type=\"button\" class=\"btn btn-danger btn-component\" disabled=\"\" tabindex=\"0\"><span class=\"rioglyph rioglyph-error-sign\"></span>Danger</button><button type=\"button\" class=\"btn btn-muted-filled btn-component\" disabled=\"\" tabindex=\"0\"><span class=\"rioglyph rioglyph-cog\"></span>Muted filled</button><button type=\"button\" class=\"btn btn-muted btn-component\" disabled=\"\" tabindex=\"0\"><span class=\"rioglyph rioglyph-heart\"></span>Muted</button></div><div class=\"text-color-dark max-width-100pct text-size-12 display-inline-block margin-bottom-5 margin-top-15\">Button sizes</div><div class=\"btn-toolbar\"><button type=\"button\" class=\"btn btn-default btn-xs btn-component\" tabindex=\"0\"><span class=\"rioglyph rioglyph-truck\"></span>Extra Small</button><button type=\"button\" class=\"btn btn-primary btn-sm btn-component\" tabindex=\"0\"><span class=\"rioglyph rioglyph-heart\"></span>Small</button><button type=\"button\" class=\"btn btn-success btn-md btn-component\" tabindex=\"0\"><span class=\"rioglyph rioglyph-thumbs-up\"></span>Medium</button><button type=\"button\" class=\"btn btn-info btn-lg btn-component\" tabindex=\"0\"><span class=\"rioglyph rioglyph-info-sign\"></span>Large</button></div><div class=\"text-color-dark max-width-100pct text-size-12 display-inline-block margin-bottom-5 margin-top-15\">Icon only buttons</div><div class=\"btn-toolbar\"><button type=\"button\" class=\"btn btn-default btn-icon-only btn-component\" tabindex=\"0\"><span class=\"rioglyph rioglyph-truck\"></span></button><button type=\"button\" class=\"btn btn-primary btn-icon-only btn-component\" tabindex=\"0\"><span class=\"rioglyph rioglyph-heart\"></span></button><button type=\"button\" class=\"btn btn-success btn-icon-only btn-component\" tabindex=\"0\"><span class=\"rioglyph rioglyph-thumbs-up\"></span></button><button type=\"button\" class=\"btn btn-info btn-icon-only btn-component\" tabindex=\"0\"><span class=\"rioglyph rioglyph-status-driving\"></span></button><button type=\"button\" class=\"btn btn-warning btn-icon-only btn-component\" tabindex=\"0\"><span class=\"rioglyph rioglyph-warning-sign\"></span></button><button type=\"button\" class=\"btn btn-danger btn-icon-only btn-component\" tabindex=\"0\"><span class=\"rioglyph rioglyph-error-sign\"></span></button><button type=\"button\" class=\"btn btn-muted-filled btn-icon-only btn-component\" tabindex=\"0\"><span class=\"rioglyph rioglyph-cog\"></span></button><button type=\"button\" class=\"btn btn-muted btn-icon-only btn-component\" tabindex=\"0\"><span class=\"rioglyph rioglyph-heart\"></span></button></div></div></div>",
|
|
22
|
+
"tabs": [
|
|
23
|
+
{
|
|
24
|
+
"label": "React",
|
|
25
|
+
"language": "tsx",
|
|
26
|
+
"code": "import Button from '@rio-cloud/rio-uikit/Button';\nimport ButtonToolbar from '@rio-cloud/rio-uikit/ButtonToolbar';\nimport FormLabel from '@rio-cloud/rio-uikit/FormLabel';\n\nexport default () => (\n <div>\n <FormLabel>Standard buttons</FormLabel>\n <ButtonToolbar>\n <Button iconName='rioglyph-truck'>Default</Button>\n <Button bsStyle={Button.PRIMARY} iconName='rioglyph-heart'>\n Primary\n </Button>\n <Button bsStyle={Button.SECONDARY} iconName='rioglyph-poi'>\n Secondary\n </Button>\n <Button bsStyle={Button.SUCCESS} iconName='rioglyph-thumbs-up'>\n Success\n </Button>\n <Button bsStyle={Button.INFO} iconName='rioglyph-info-sign'>\n Info\n </Button>\n <Button bsStyle={Button.WARNING} iconName='rioglyph-warning-sign'>\n Warning\n </Button>\n <Button bsStyle={Button.DANGER} iconName='rioglyph-error-sign'>\n Danger\n </Button>\n <Button bsStyle={Button.MUTED_FILLED} iconName='rioglyph-cog'>\n Muted filled\n </Button>\n <Button bsStyle={Button.MUTED} iconName='rioglyph-heart'>\n Muted\n </Button>\n </ButtonToolbar>\n\n <FormLabel className='margin-top-15'>Disabled buttons</FormLabel>\n <ButtonToolbar>\n <Button disabled iconName='rioglyph-truck'>\n Default\n </Button>\n <Button bsStyle={Button.PRIMARY} disabled iconName='rioglyph-heart'>\n Primary\n </Button>\n <Button bsStyle={Button.SECONDARY} disabled iconName='rioglyph-poi'>\n Secondary\n </Button>\n <Button bsStyle={Button.SUCCESS} disabled iconName='rioglyph-thumbs-up'>\n Success\n </Button>\n <Button bsStyle={Button.INFO} disabled iconName='rioglyph-info-sign'>\n Info\n </Button>\n <Button bsStyle={Button.WARNING} disabled iconName='rioglyph-warning-sign'>\n Warning\n </Button>\n <Button bsStyle={Button.DANGER} disabled iconName='rioglyph-error-sign'>\n Danger\n </Button>\n <Button bsStyle={Button.MUTED_FILLED} disabled iconName='rioglyph-cog'>\n Muted filled\n </Button>\n <Button bsStyle={Button.MUTED} disabled iconName='rioglyph-heart'>\n Muted\n </Button>\n </ButtonToolbar>\n\n <FormLabel className='margin-top-15'>Button sizes</FormLabel>\n <ButtonToolbar>\n <Button bsSize={Button.XS} iconName='rioglyph-truck'>\n Extra Small\n </Button>\n <Button bsStyle={Button.PRIMARY} bsSize={Button.SM} iconName='rioglyph-heart'>\n Small\n </Button>\n <Button bsStyle={Button.SUCCESS} bsSize={Button.MD} iconName='rioglyph-thumbs-up'>\n Medium\n </Button>\n <Button\n bsStyle={Button.INFO}\n bsSize={Button.LG}\n onClick={() => console.log('button clicked')}\n iconName='rioglyph-info-sign'\n >\n Large\n </Button>\n </ButtonToolbar>\n\n <FormLabel className='margin-top-15'>Icon only buttons</FormLabel>\n <ButtonToolbar>\n <Button iconOnly iconName='rioglyph-truck' />\n <Button bsStyle={Button.PRIMARY} iconOnly iconName='rioglyph-heart' />\n <Button bsStyle={Button.SUCCESS} iconOnly iconName='rioglyph-thumbs-up' />\n <Button bsStyle={Button.INFO} iconOnly iconName='rioglyph-status-driving' />\n <Button bsStyle={Button.WARNING} iconOnly iconName='rioglyph-warning-sign' />\n <Button bsStyle={Button.DANGER} iconOnly iconName='rioglyph-error-sign' />\n <Button bsStyle={Button.MUTED_FILLED} iconOnly iconName='rioglyph-cog' />\n <Button bsStyle={Button.MUTED} iconOnly iconName='rioglyph-heart' />\n </ButtonToolbar>\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\">Standard buttons</div>\n <div class=\"btn-toolbar\">\n <button type=\"button\" class=\"btn btn-default btn-component\" tabindex=\"0\">\n <span class=\"rioglyph rioglyph-truck\">\n </span>Default</button>\n <button type=\"button\" class=\"btn btn-primary btn-component\" tabindex=\"0\">\n <span class=\"rioglyph rioglyph-heart\">\n </span>Primary</button>\n <button type=\"button\" class=\"btn btn-secondary btn-component\" tabindex=\"0\">\n <span class=\"rioglyph rioglyph-poi\">\n </span>Secondary</button>\n <button type=\"button\" class=\"btn btn-success btn-component\" tabindex=\"0\">\n <span class=\"rioglyph rioglyph-thumbs-up\">\n </span>Success</button>\n <button type=\"button\" class=\"btn btn-info btn-component\" tabindex=\"0\">\n <span class=\"rioglyph rioglyph-info-sign\">\n </span>Info</button>\n <button type=\"button\" class=\"btn btn-warning btn-component\" tabindex=\"0\">\n <span class=\"rioglyph rioglyph-warning-sign\">\n </span>Warning</button>\n <button type=\"button\" class=\"btn btn-danger btn-component\" tabindex=\"0\">\n <span class=\"rioglyph rioglyph-error-sign\">\n </span>Danger</button>\n <button type=\"button\" class=\"btn btn-muted-filled btn-component\" tabindex=\"0\">\n <span class=\"rioglyph rioglyph-cog\">\n </span>Muted filled</button>\n <button type=\"button\" class=\"btn btn-muted btn-component\" tabindex=\"0\">\n <span class=\"rioglyph rioglyph-heart\">\n </span>Muted</button>\n </div>\n <div class=\"text-color-dark max-width-100pct text-size-12 display-inline-block margin-bottom-5 margin-top-15\">Disabled buttons</div>\n <div class=\"btn-toolbar\">\n <button type=\"button\" class=\"btn btn-default btn-component\" disabled=\"\" tabindex=\"0\">\n <span class=\"rioglyph rioglyph-truck\">\n </span>Default</button>\n <button type=\"button\" class=\"btn btn-primary btn-component\" disabled=\"\" tabindex=\"0\">\n <span class=\"rioglyph rioglyph-heart\">\n </span>Primary</button>\n <button type=\"button\" class=\"btn btn-secondary btn-component\" disabled=\"\" tabindex=\"0\">\n <span class=\"rioglyph rioglyph-poi\">\n </span>Secondary</button>\n <button type=\"button\" class=\"btn btn-success btn-component\" disabled=\"\" tabindex=\"0\">\n <span class=\"rioglyph rioglyph-thumbs-up\">\n </span>Success</button>\n <button type=\"button\" class=\"btn btn-info btn-component\" disabled=\"\" tabindex=\"0\">\n <span class=\"rioglyph rioglyph-info-sign\">\n </span>Info</button>\n <button type=\"button\" class=\"btn btn-warning btn-component\" disabled=\"\" tabindex=\"0\">\n <span class=\"rioglyph rioglyph-warning-sign\">\n </span>Warning</button>\n <button type=\"button\" class=\"btn btn-danger btn-component\" disabled=\"\" tabindex=\"0\">\n <span class=\"rioglyph rioglyph-error-sign\">\n </span>Danger</button>\n <button type=\"button\" class=\"btn btn-muted-filled btn-component\" disabled=\"\" tabindex=\"0\">\n <span class=\"rioglyph rioglyph-cog\">\n </span>Muted filled</button>\n <button type=\"button\" class=\"btn btn-muted btn-component\" disabled=\"\" tabindex=\"0\">\n <span class=\"rioglyph rioglyph-heart\">\n </span>Muted</button>\n </div>\n <div class=\"text-color-dark max-width-100pct text-size-12 display-inline-block margin-bottom-5 margin-top-15\">Button sizes</div>\n <div class=\"btn-toolbar\">\n <button type=\"button\" class=\"btn btn-default btn-xs btn-component\" tabindex=\"0\">\n <span class=\"rioglyph rioglyph-truck\">\n </span>Extra Small</button>\n <button type=\"button\" class=\"btn btn-primary btn-sm btn-component\" tabindex=\"0\">\n <span class=\"rioglyph rioglyph-heart\">\n </span>Small</button>\n <button type=\"button\" class=\"btn btn-success btn-md btn-component\" tabindex=\"0\">\n <span class=\"rioglyph rioglyph-thumbs-up\">\n </span>Medium</button>\n <button type=\"button\" class=\"btn btn-info btn-lg btn-component\" tabindex=\"0\">\n <span class=\"rioglyph rioglyph-info-sign\">\n </span>Large</button>\n </div>\n <div class=\"text-color-dark max-width-100pct text-size-12 display-inline-block margin-bottom-5 margin-top-15\">Icon only buttons</div>\n <div class=\"btn-toolbar\">\n <button type=\"button\" class=\"btn btn-default btn-icon-only btn-component\" tabindex=\"0\">\n <span class=\"rioglyph rioglyph-truck\">\n </span>\n </button>\n <button type=\"button\" class=\"btn btn-primary btn-icon-only btn-component\" tabindex=\"0\">\n <span class=\"rioglyph rioglyph-heart\">\n </span>\n </button>\n <button type=\"button\" class=\"btn btn-success 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-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-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-icon-only btn-component\" tabindex=\"0\">\n <span class=\"rioglyph rioglyph-error-sign\">\n </span>\n </button>\n <button type=\"button\" class=\"btn btn-muted-filled btn-icon-only btn-component\" tabindex=\"0\">\n <span class=\"rioglyph rioglyph-cog\">\n </span>\n </button>\n <button type=\"button\" class=\"btn btn-muted btn-icon-only btn-component\" tabindex=\"0\">\n <span class=\"rioglyph rioglyph-heart\">\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": "Link buttons",
|
|
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\">Link buttons</div><div class=\"btn-toolbar\"><button type=\"button\" class=\"btn btn-primary btn-link btn-component\" tabindex=\"0\"><span class=\"rioglyph rioglyph-heart\"></span>Primary</button><button type=\"button\" class=\"btn btn-success btn-link btn-component\" tabindex=\"0\"><span class=\"rioglyph rioglyph-thumbs-up\"></span>Success</button><button type=\"button\" class=\"btn btn-info btn-link btn-component\" tabindex=\"0\"><span class=\"rioglyph rioglyph-info-sign\"></span>Info</button><button type=\"button\" class=\"btn btn-warning btn-link btn-component\" tabindex=\"0\"><span class=\"rioglyph rioglyph-warning-sign\"></span>Warning</button><button type=\"button\" class=\"btn btn-danger btn-link btn-component\" tabindex=\"0\"><span class=\"rioglyph rioglyph-error-sign\"></span>Danger</button></div><div><div class=\"text-color-dark max-width-100pct text-size-12 display-inline-block margin-bottom-5 margin-top-25\">Link inline buttons</div></div><div class=\"display-inline-flex gap-4\">This is an example for an <button type=\"button\" class=\"btn btn-primary btn-link btn-link-inline btn-component\" tabindex=\"0\"><span class=\"rioglyph rioglyph-new-window\"></span>Inline link</button> button.</div><p class=\"margin-top-25\"><span class=\"label label-info label-condensed margin-right-5\">Note</span> Link buttons can also be used within text blocks by setting the variant type to <code class=\"code\">Button.VARIANT_LINK_INLINE</code>.</p></div></div>",
|
|
134
|
+
"tabs": [
|
|
135
|
+
{
|
|
136
|
+
"label": "React",
|
|
137
|
+
"language": "tsx",
|
|
138
|
+
"code": "import Button from '@rio-cloud/rio-uikit/Button';\nimport ButtonToolbar from '@rio-cloud/rio-uikit/ButtonToolbar';\nimport FormLabel from '@rio-cloud/rio-uikit/FormLabel';\n\nexport default () => (\n <div>\n <FormLabel>Link buttons</FormLabel>\n <ButtonToolbar>\n <Button bsStyle={Button.PRIMARY} variant={Button.VARIANT_LINK} iconName='rioglyph-heart'>\n Primary\n </Button>\n <Button bsStyle={Button.SUCCESS} variant={Button.VARIANT_LINK} iconName='rioglyph-thumbs-up'>\n Success\n </Button>\n <Button bsStyle={Button.INFO} variant={Button.VARIANT_LINK} iconName='rioglyph-info-sign'>\n Info\n </Button>\n <Button bsStyle={Button.WARNING} variant={Button.VARIANT_LINK} iconName='rioglyph-warning-sign'>\n Warning\n </Button>\n <Button bsStyle={Button.DANGER} variant={Button.VARIANT_LINK} iconName='rioglyph-error-sign'>\n Danger\n </Button>\n </ButtonToolbar>\n <div>\n <FormLabel className='margin-top-25'>Link inline buttons</FormLabel>\n </div>\n <div className='display-inline-flex gap-4'>\n This is an example for an{' '}\n <Button bsStyle={Button.PRIMARY} variant={Button.VARIANT_LINK_INLINE} iconName='rioglyph-new-window'>\n Inline link\n </Button>{' '}\n button.\n </div>\n <p className='margin-top-25'>\n <span className='label label-info label-condensed margin-right-5'>Note</span> Link buttons can also be used\n within text blocks by setting the variant type to <code className='code'>Button.VARIANT_LINK_INLINE</code>.\n </p>\n </div>\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\">Link buttons</div>\n <div class=\"btn-toolbar\">\n <button type=\"button\" class=\"btn btn-primary btn-link btn-component\" tabindex=\"0\">\n <span class=\"rioglyph rioglyph-heart\">\n </span>Primary</button>\n <button type=\"button\" class=\"btn btn-success btn-link btn-component\" tabindex=\"0\">\n <span class=\"rioglyph rioglyph-thumbs-up\">\n </span>Success</button>\n <button type=\"button\" class=\"btn btn-info btn-link btn-component\" tabindex=\"0\">\n <span class=\"rioglyph rioglyph-info-sign\">\n </span>Info</button>\n <button type=\"button\" class=\"btn btn-warning btn-link btn-component\" tabindex=\"0\">\n <span class=\"rioglyph rioglyph-warning-sign\">\n </span>Warning</button>\n <button type=\"button\" class=\"btn btn-danger btn-link btn-component\" tabindex=\"0\">\n <span class=\"rioglyph rioglyph-error-sign\">\n </span>Danger</button>\n </div>\n <div>\n <div class=\"text-color-dark max-width-100pct text-size-12 display-inline-block margin-bottom-5 margin-top-25\">Link inline buttons</div>\n </div>\n <div class=\"display-inline-flex gap-4\">This is an example for an <button type=\"button\" class=\"btn btn-primary btn-link btn-link-inline btn-component\" tabindex=\"0\">\n <span class=\"rioglyph rioglyph-new-window\">\n </span>Inline link</button> button.</div>\n <p class=\"margin-top-25\">\n <span class=\"label label-info label-condensed margin-right-5\">Note</span> Link buttons can also be used within text blocks by setting the variant type to <code class=\"code\">Button.VARIANT_LINK_INLINE</code>.\n </p>\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
|
+
"caption": "Button group",
|
|
245
|
+
"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\">Button group</div><div class=\"btn-toolbar\"><div class=\"btn-group\"><button type=\"button\" class=\"btn btn-default btn-icon-only btn-component\" tabindex=\"0\"><span class=\"rioglyph rioglyph-cloud-download\"></span></button><button type=\"button\" class=\"btn btn-default btn-icon-only btn-component\" tabindex=\"0\"><span class=\"rioglyph rioglyph-cloud-upload\"></span></button><button type=\"button\" class=\"btn btn-default btn-icon-only btn-component\" tabindex=\"0\"><span class=\"rioglyph rioglyph-cog\"></span></button></div></div><div class=\"text-color-dark max-width-100pct text-size-12 display-inline-block margin-bottom-5 margin-top-15\">Button with tooltips</div><div class=\"btn-toolbar\"><button type=\"button\" class=\"btn btn-info btn-component\" tabindex=\"0\">Button with Tooltip</button><span class=\"cursor-not-allowed\"><button type=\"button\" class=\"btn btn-info btn-component\" disabled=\"\" tabindex=\"0\">Disabled Button with Tooltip</button></span></div><div class=\"text-color-dark max-width-100pct text-size-12 display-inline-block margin-bottom-5 margin-top-15\">Block button</div><div class=\"max-width-500 btn-toolbar\"><button type=\"button\" class=\"btn btn-default btn-block btn-component\" tabindex=\"0\">Block button</button></div><div class=\"text-color-dark max-width-100pct text-size-12 display-inline-block margin-bottom-5 margin-top-15\">Multiline button</div><div class=\"max-width-200 btn-toolbar\"><button type=\"button\" class=\"btn btn-primary btn-lg btn-multiline btn-component\" tabindex=\"0\">This is a multiline button with a lot of Text</button></div><div class=\"text-color-dark max-width-100pct text-size-12 display-inline-block margin-bottom-5 margin-top-15\">Toggle button</div><div class=\"max-width-200 btn-toolbar\"><button type=\"button\" class=\"btn btn-default btn-toggle btn-component\" tabindex=\"0\">Toggle me</button></div><div class=\"text-color-dark max-width-100pct text-size-12 display-inline-block margin-bottom-5 margin-top-15\">Add something / take picture button example</div><div class=\"max-width-200 btn-toolbar\"><button type=\"button\" class=\"btn btn-unstyled btn-component height-70 width-60 bg-lightest border border-style-dashed border-width-1 border-color-light text-color-light hover-text-color-darker\" tabindex=\"0\"><span class=\"rioglyph rioglyph-plus-sign margin-0 text-size-20\"></span></button></div></div></div>",
|
|
246
|
+
"tabs": [
|
|
247
|
+
{
|
|
248
|
+
"label": "React",
|
|
249
|
+
"language": "tsx",
|
|
250
|
+
"code": "import Button from '@rio-cloud/rio-uikit/Button';\nimport ButtonToolbar from '@rio-cloud/rio-uikit/ButtonToolbar';\nimport SimpleTooltip from '@rio-cloud/rio-uikit/SimpleTooltip';\nimport FormLabel from '@rio-cloud/rio-uikit/FormLabel';\n\nexport default () => (\n <div>\n <FormLabel>Button group</FormLabel>\n <ButtonToolbar>\n <div className='btn-group'>\n <Button iconName='rioglyph-cloud-download' iconOnly />\n <Button iconName='rioglyph-cloud-upload' iconOnly />\n <Button iconName='rioglyph-cog' iconOnly />\n </div>\n </ButtonToolbar>\n\n <FormLabel className='margin-top-15'>Button with tooltips</FormLabel>\n <ButtonToolbar>\n <SimpleTooltip content='Uhh, click me!' width='auto' placement='bottom'>\n <Button bsStyle={Button.INFO}>Button with Tooltip</Button>\n </SimpleTooltip>\n\n <SimpleTooltip content='This is not the button you are looking for' placement='top'>\n <span className='cursor-not-allowed'>\n <Button bsStyle={Button.INFO} disabled>\n Disabled Button with Tooltip\n </Button>\n </span>\n </SimpleTooltip>\n </ButtonToolbar>\n\n <FormLabel className='margin-top-15'>Block button</FormLabel>\n <ButtonToolbar className='max-width-500'>\n <Button block>Block button</Button>\n </ButtonToolbar>\n\n <FormLabel className='margin-top-15'>Multiline button</FormLabel>\n <ButtonToolbar className='max-width-200'>\n <Button bsStyle={Button.PRIMARY} bsSize={Button.LG} multiline>\n This is a multiline button with a lot of Text\n </Button>\n </ButtonToolbar>\n\n <FormLabel className='margin-top-15'>Toggle button</FormLabel>\n <ButtonToolbar className='max-width-200'>\n <Button asToggle>Toggle me</Button>\n </ButtonToolbar>\n\n <FormLabel className='margin-top-15'>Add something / take picture button example</FormLabel>\n <ButtonToolbar className='max-width-200'>\n <Button\n bsStyle='unstyled'\n className={\n 'height-70 width-60 bg-lightest border border-style-dashed ' +\n 'border-width-1 border-color-light text-color-light hover-text-color-darker'\n }\n >\n <span className='rioglyph rioglyph-plus-sign margin-0 text-size-20' />\n </Button>\n </ButtonToolbar>\n </div>\n);"
|
|
251
|
+
},
|
|
252
|
+
{
|
|
253
|
+
"label": "HTML",
|
|
254
|
+
"language": "html",
|
|
255
|
+
"code": "<div>\n <div class=\"text-color-dark max-width-100pct text-size-12 display-inline-block margin-bottom-5\">Button group</div>\n <div class=\"btn-toolbar\">\n <div class=\"btn-group\">\n <button type=\"button\" class=\"btn btn-default btn-icon-only btn-component\" tabindex=\"0\">\n <span class=\"rioglyph rioglyph-cloud-download\">\n </span>\n </button>\n <button type=\"button\" class=\"btn btn-default btn-icon-only btn-component\" tabindex=\"0\">\n <span class=\"rioglyph rioglyph-cloud-upload\">\n </span>\n </button>\n <button type=\"button\" class=\"btn btn-default btn-icon-only btn-component\" tabindex=\"0\">\n <span class=\"rioglyph rioglyph-cog\">\n </span>\n </button>\n </div>\n </div>\n <div class=\"text-color-dark max-width-100pct text-size-12 display-inline-block margin-bottom-5 margin-top-15\">Button with tooltips</div>\n <div class=\"btn-toolbar\">\n <button type=\"button\" class=\"btn btn-info btn-component\" tabindex=\"0\">Button with Tooltip</button>\n <span class=\"cursor-not-allowed\">\n <button type=\"button\" class=\"btn btn-info btn-component\" disabled=\"\" tabindex=\"0\">Disabled Button with Tooltip</button>\n </span>\n </div>\n <div class=\"text-color-dark max-width-100pct text-size-12 display-inline-block margin-bottom-5 margin-top-15\">Block button</div>\n <div class=\"max-width-500 btn-toolbar\">\n <button type=\"button\" class=\"btn btn-default btn-block btn-component\" tabindex=\"0\">Block button</button>\n </div>\n <div class=\"text-color-dark max-width-100pct text-size-12 display-inline-block margin-bottom-5 margin-top-15\">Multiline button</div>\n <div class=\"max-width-200 btn-toolbar\">\n <button type=\"button\" class=\"btn btn-primary btn-lg btn-multiline btn-component\" tabindex=\"0\">This is a multiline button with a lot of Text</button>\n </div>\n <div class=\"text-color-dark max-width-100pct text-size-12 display-inline-block margin-bottom-5 margin-top-15\">Toggle button</div>\n <div class=\"max-width-200 btn-toolbar\">\n <button type=\"button\" class=\"btn btn-default btn-toggle btn-component\" tabindex=\"0\">Toggle me</button>\n </div>\n <div class=\"text-color-dark max-width-100pct text-size-12 display-inline-block margin-bottom-5 margin-top-15\">Add something / take picture button example</div>\n <div class=\"max-width-200 btn-toolbar\">\n <button type=\"button\" class=\"btn btn-unstyled btn-component height-70 width-60 bg-lightest border border-style-dashed border-width-1 border-color-light text-color-light hover-text-color-darker\" tabindex=\"0\">\n <span class=\"rioglyph rioglyph-plus-sign margin-0 text-size-20\">\n </span>\n </button>\n </div>\n</div>"
|
|
256
|
+
},
|
|
257
|
+
{
|
|
258
|
+
"label": "Props",
|
|
259
|
+
"language": "json",
|
|
260
|
+
"code": null,
|
|
261
|
+
"props": [
|
|
262
|
+
{
|
|
263
|
+
"heading": null,
|
|
264
|
+
"rows": [
|
|
265
|
+
{
|
|
266
|
+
"name": "disabled",
|
|
267
|
+
"type": "Boolean",
|
|
268
|
+
"default": "false",
|
|
269
|
+
"description": "Set the button disabled."
|
|
270
|
+
},
|
|
271
|
+
{
|
|
272
|
+
"name": "active",
|
|
273
|
+
"type": "Boolean",
|
|
274
|
+
"default": "false",
|
|
275
|
+
"description": "Set the button toggled. Should be used in combination with \"asToggle\" prop."
|
|
276
|
+
},
|
|
277
|
+
{
|
|
278
|
+
"name": "asToggle",
|
|
279
|
+
"type": "Boolean",
|
|
280
|
+
"default": "false",
|
|
281
|
+
"description": "Use the button as a toggle button. The toggle state can be controlled viw the \"active\" prop."
|
|
282
|
+
},
|
|
283
|
+
{
|
|
284
|
+
"name": "iconOnly",
|
|
285
|
+
"type": "Boolean",
|
|
286
|
+
"default": "false",
|
|
287
|
+
"description": "Use when the content of the button is an icon only to adapt the button spacing accordingly."
|
|
288
|
+
},
|
|
289
|
+
{
|
|
290
|
+
"name": "iconName",
|
|
291
|
+
"type": "String",
|
|
292
|
+
"default": "",
|
|
293
|
+
"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."
|
|
294
|
+
},
|
|
295
|
+
{
|
|
296
|
+
"name": "iconRight",
|
|
297
|
+
"type": "Boolean",
|
|
298
|
+
"default": "false",
|
|
299
|
+
"description": "Adds right side spacing for an icon. This should be used when having navigation buttons that use an icon on the right side."
|
|
300
|
+
},
|
|
301
|
+
{
|
|
302
|
+
"name": "multiline",
|
|
303
|
+
"type": "Boolean",
|
|
304
|
+
"default": "false",
|
|
305
|
+
"description": "Defines whether the button text break into multiple lines when the button space exceeds. Multiline buttons should be used as exception only."
|
|
306
|
+
},
|
|
307
|
+
{
|
|
308
|
+
"name": "block",
|
|
309
|
+
"type": "Boolean",
|
|
310
|
+
"default": "false",
|
|
311
|
+
"description": "Defines whether the button takes up the full width of the parent element."
|
|
312
|
+
},
|
|
313
|
+
{
|
|
314
|
+
"name": "onClick",
|
|
315
|
+
"type": "Function",
|
|
316
|
+
"default": "() => {}",
|
|
317
|
+
"description": "Callback function triggered when clicking the button."
|
|
318
|
+
},
|
|
319
|
+
{
|
|
320
|
+
"name": "bsStyle",
|
|
321
|
+
"type": "String",
|
|
322
|
+
"default": "default",
|
|
323
|
+
"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"
|
|
324
|
+
},
|
|
325
|
+
{
|
|
326
|
+
"name": "bsSize",
|
|
327
|
+
"type": "String",
|
|
328
|
+
"default": "",
|
|
329
|
+
"description": "Sets the button size. Possible values are: xs, sm, md and lg or Button.XS, Button.SM, Button.MD and Button.LG"
|
|
330
|
+
},
|
|
331
|
+
{
|
|
332
|
+
"name": "variant",
|
|
333
|
+
"type": "String",
|
|
334
|
+
"default": "",
|
|
335
|
+
"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"
|
|
336
|
+
},
|
|
337
|
+
{
|
|
338
|
+
"name": "className",
|
|
339
|
+
"type": "String",
|
|
340
|
+
"default": "",
|
|
341
|
+
"description": "Additional classes to be set on the button element."
|
|
342
|
+
},
|
|
343
|
+
{
|
|
344
|
+
"name": "children",
|
|
345
|
+
"type": "any",
|
|
346
|
+
"default": "",
|
|
347
|
+
"description": "Any element to be rendered on the button."
|
|
348
|
+
}
|
|
349
|
+
]
|
|
350
|
+
}
|
|
351
|
+
]
|
|
352
|
+
}
|
|
353
|
+
]
|
|
354
|
+
},
|
|
355
|
+
{
|
|
356
|
+
"caption": "Outlined buttons (transparent)",
|
|
357
|
+
"rendered_html": "<div class=\"playground-content bg-checkerboard 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\">Outlined buttons (transparent)</div><div class=\"btn-toolbar\"><button type=\"button\" class=\"btn btn-default btn-outline btn-component\" tabindex=\"0\"><span class=\"rioglyph rioglyph-truck\"></span>Default</button><button type=\"button\" class=\"btn btn-primary btn-outline btn-component\" tabindex=\"0\"><span class=\"rioglyph rioglyph-heart\"></span>Primary</button><button type=\"button\" class=\"btn btn-success btn-outline btn-component\" tabindex=\"0\"><span class=\"rioglyph rioglyph-thumbs-up\"></span>Success</button><button type=\"button\" class=\"btn btn-info btn-outline btn-component\" tabindex=\"0\"><span class=\"rioglyph rioglyph-info-sign\"></span>Info</button><button type=\"button\" class=\"btn btn-warning btn-outline btn-component\" tabindex=\"0\"><span class=\"rioglyph rioglyph-warning-sign\"></span>Warning</button><button type=\"button\" class=\"btn btn-danger btn-outline btn-component\" tabindex=\"0\"><span class=\"rioglyph rioglyph-error-sign\"></span>Danger</button><button type=\"button\" class=\"btn btn-muted-filled btn-outline btn-component\" tabindex=\"0\"><span class=\"rioglyph rioglyph-cog\"></span>Muted filled</button><button type=\"button\" class=\"btn btn-muted btn-outline btn-component\" tabindex=\"0\"><span class=\"rioglyph rioglyph-heart\"></span>Muted</button></div></div></div>",
|
|
358
|
+
"tabs": [
|
|
359
|
+
{
|
|
360
|
+
"label": "React",
|
|
361
|
+
"language": "tsx",
|
|
362
|
+
"code": "import Button from '@rio-cloud/rio-uikit/Button';\nimport ButtonToolbar from '@rio-cloud/rio-uikit/ButtonToolbar';\nimport FormLabel from '@rio-cloud/rio-uikit/FormLabel';\n\nexport default () => (\n <div>\n <FormLabel>Outlined buttons (transparent)</FormLabel>\n <ButtonToolbar>\n <Button variant={Button.VARIANT_OUTLINE} iconName='rioglyph-truck'>\n Default\n </Button>\n <Button bsStyle={Button.PRIMARY} variant={Button.VARIANT_OUTLINE} iconName='rioglyph-heart'>\n Primary\n </Button>\n <Button bsStyle={Button.SUCCESS} variant={Button.VARIANT_OUTLINE} iconName='rioglyph-thumbs-up'>\n Success\n </Button>\n <Button bsStyle={Button.INFO} variant={Button.VARIANT_OUTLINE} iconName='rioglyph-info-sign'>\n Info\n </Button>\n <Button bsStyle={Button.WARNING} variant={Button.VARIANT_OUTLINE} iconName='rioglyph-warning-sign'>\n Warning\n </Button>\n <Button bsStyle={Button.DANGER} variant={Button.VARIANT_OUTLINE} iconName='rioglyph-error-sign'>\n Danger\n </Button>\n <Button bsStyle={Button.MUTED_FILLED} variant={Button.VARIANT_OUTLINE} iconName='rioglyph-cog'>\n Muted filled\n </Button>\n <Button bsStyle={Button.MUTED} variant={Button.VARIANT_OUTLINE} iconName='rioglyph-heart'>\n Muted\n </Button>\n </ButtonToolbar>\n </div>\n);"
|
|
363
|
+
},
|
|
364
|
+
{
|
|
365
|
+
"label": "HTML",
|
|
366
|
+
"language": "html",
|
|
367
|
+
"code": "<div>\n <div class=\"text-color-dark max-width-100pct text-size-12 display-inline-block margin-bottom-5\">Outlined buttons (transparent)</div>\n <div class=\"btn-toolbar\">\n <button type=\"button\" class=\"btn btn-default btn-outline btn-component\" tabindex=\"0\">\n <span class=\"rioglyph rioglyph-truck\">\n </span>Default</button>\n <button type=\"button\" class=\"btn btn-primary btn-outline btn-component\" tabindex=\"0\">\n <span class=\"rioglyph rioglyph-heart\">\n </span>Primary</button>\n <button type=\"button\" class=\"btn btn-success btn-outline btn-component\" tabindex=\"0\">\n <span class=\"rioglyph rioglyph-thumbs-up\">\n </span>Success</button>\n <button type=\"button\" class=\"btn btn-info btn-outline btn-component\" tabindex=\"0\">\n <span class=\"rioglyph rioglyph-info-sign\">\n </span>Info</button>\n <button type=\"button\" class=\"btn btn-warning btn-outline btn-component\" tabindex=\"0\">\n <span class=\"rioglyph rioglyph-warning-sign\">\n </span>Warning</button>\n <button type=\"button\" class=\"btn btn-danger btn-outline btn-component\" tabindex=\"0\">\n <span class=\"rioglyph rioglyph-error-sign\">\n </span>Danger</button>\n <button type=\"button\" class=\"btn btn-muted-filled btn-outline btn-component\" tabindex=\"0\">\n <span class=\"rioglyph rioglyph-cog\">\n </span>Muted filled</button>\n <button type=\"button\" class=\"btn btn-muted btn-outline btn-component\" tabindex=\"0\">\n <span class=\"rioglyph rioglyph-heart\">\n </span>Muted</button>\n </div>\n</div>"
|
|
368
|
+
},
|
|
369
|
+
{
|
|
370
|
+
"label": "Props",
|
|
371
|
+
"language": "json",
|
|
372
|
+
"code": null,
|
|
373
|
+
"props": [
|
|
374
|
+
{
|
|
375
|
+
"heading": null,
|
|
376
|
+
"rows": [
|
|
377
|
+
{
|
|
378
|
+
"name": "disabled",
|
|
379
|
+
"type": "Boolean",
|
|
380
|
+
"default": "false",
|
|
381
|
+
"description": "Set the button disabled."
|
|
382
|
+
},
|
|
383
|
+
{
|
|
384
|
+
"name": "active",
|
|
385
|
+
"type": "Boolean",
|
|
386
|
+
"default": "false",
|
|
387
|
+
"description": "Set the button toggled. Should be used in combination with \"asToggle\" prop."
|
|
388
|
+
},
|
|
389
|
+
{
|
|
390
|
+
"name": "asToggle",
|
|
391
|
+
"type": "Boolean",
|
|
392
|
+
"default": "false",
|
|
393
|
+
"description": "Use the button as a toggle button. The toggle state can be controlled viw the \"active\" prop."
|
|
394
|
+
},
|
|
395
|
+
{
|
|
396
|
+
"name": "iconOnly",
|
|
397
|
+
"type": "Boolean",
|
|
398
|
+
"default": "false",
|
|
399
|
+
"description": "Use when the content of the button is an icon only to adapt the button spacing accordingly."
|
|
400
|
+
},
|
|
401
|
+
{
|
|
402
|
+
"name": "iconName",
|
|
403
|
+
"type": "String",
|
|
404
|
+
"default": "",
|
|
405
|
+
"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."
|
|
406
|
+
},
|
|
407
|
+
{
|
|
408
|
+
"name": "iconRight",
|
|
409
|
+
"type": "Boolean",
|
|
410
|
+
"default": "false",
|
|
411
|
+
"description": "Adds right side spacing for an icon. This should be used when having navigation buttons that use an icon on the right side."
|
|
412
|
+
},
|
|
413
|
+
{
|
|
414
|
+
"name": "multiline",
|
|
415
|
+
"type": "Boolean",
|
|
416
|
+
"default": "false",
|
|
417
|
+
"description": "Defines whether the button text break into multiple lines when the button space exceeds. Multiline buttons should be used as exception only."
|
|
418
|
+
},
|
|
419
|
+
{
|
|
420
|
+
"name": "block",
|
|
421
|
+
"type": "Boolean",
|
|
422
|
+
"default": "false",
|
|
423
|
+
"description": "Defines whether the button takes up the full width of the parent element."
|
|
424
|
+
},
|
|
425
|
+
{
|
|
426
|
+
"name": "onClick",
|
|
427
|
+
"type": "Function",
|
|
428
|
+
"default": "() => {}",
|
|
429
|
+
"description": "Callback function triggered when clicking the button."
|
|
430
|
+
},
|
|
431
|
+
{
|
|
432
|
+
"name": "bsStyle",
|
|
433
|
+
"type": "String",
|
|
434
|
+
"default": "default",
|
|
435
|
+
"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"
|
|
436
|
+
},
|
|
437
|
+
{
|
|
438
|
+
"name": "bsSize",
|
|
439
|
+
"type": "String",
|
|
440
|
+
"default": "",
|
|
441
|
+
"description": "Sets the button size. Possible values are: xs, sm, md and lg or Button.XS, Button.SM, Button.MD and Button.LG"
|
|
442
|
+
},
|
|
443
|
+
{
|
|
444
|
+
"name": "variant",
|
|
445
|
+
"type": "String",
|
|
446
|
+
"default": "",
|
|
447
|
+
"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"
|
|
448
|
+
},
|
|
449
|
+
{
|
|
450
|
+
"name": "className",
|
|
451
|
+
"type": "String",
|
|
452
|
+
"default": "",
|
|
453
|
+
"description": "Additional classes to be set on the button element."
|
|
454
|
+
},
|
|
455
|
+
{
|
|
456
|
+
"name": "children",
|
|
457
|
+
"type": "any",
|
|
458
|
+
"default": "",
|
|
459
|
+
"description": "Any element to be rendered on the button."
|
|
460
|
+
}
|
|
461
|
+
]
|
|
462
|
+
}
|
|
463
|
+
]
|
|
464
|
+
}
|
|
465
|
+
]
|
|
466
|
+
},
|
|
467
|
+
{
|
|
468
|
+
"caption": "Action buttons",
|
|
469
|
+
"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\">Action buttons</div><div class=\"align-items-start btn-toolbar\"><button type=\"button\" class=\"btn btn-primary btn-action btn-component text-size-h1\" tabindex=\"0\"><span class=\"rioglyph rioglyph-truck\"></span>Click me!</button><button type=\"button\" class=\"btn btn-success btn-action btn-component text-size-h2\" tabindex=\"0\"><span class=\"rioglyph rioglyph-thumbs-up\"></span>Click me!</button><button type=\"button\" class=\"btn btn-info btn-action btn-component text-size-h3\" tabindex=\"0\"><span class=\"rioglyph rioglyph-info-sign\"></span>Click me!</button><button type=\"button\" class=\"btn btn-warning btn-action btn-component text-size-20\" tabindex=\"0\"><span class=\"rioglyph rioglyph-warning-sign\"></span>Click me!</button><button type=\"button\" class=\"btn btn-danger btn-action btn-component text-size-16\" tabindex=\"0\"><span class=\"rioglyph rioglyph-error-sign\"></span>Click me!</button><button type=\"button\" class=\"btn btn-muted btn-action btn-component text-size-14\" tabindex=\"0\"><span class=\"rioglyph rioglyph-cog\"></span>Click me!</button></div></div></div>",
|
|
470
|
+
"tabs": [
|
|
471
|
+
{
|
|
472
|
+
"label": "React",
|
|
473
|
+
"language": "tsx",
|
|
474
|
+
"code": "import Button from '@rio-cloud/rio-uikit/Button';\nimport ButtonToolbar from '@rio-cloud/rio-uikit/ButtonToolbar';\nimport FormLabel from '@rio-cloud/rio-uikit/FormLabel';\n\nexport default () => (\n <div>\n <FormLabel>Action buttons</FormLabel>\n <ButtonToolbar className='align-items-start'>\n <Button\n bsStyle={Button.PRIMARY}\n variant={Button.VARIANT_ACTION}\n iconName='rioglyph-truck'\n className='text-size-h1'\n >\n Click me!\n </Button>\n <Button\n bsStyle={Button.SUCCESS}\n variant={Button.VARIANT_ACTION}\n iconName='rioglyph-thumbs-up'\n className='text-size-h2'\n >\n Click me!\n </Button>\n <Button\n bsStyle={Button.INFO}\n variant={Button.VARIANT_ACTION}\n iconName='rioglyph-info-sign'\n className='text-size-h3'\n >\n Click me!\n </Button>\n <Button\n bsStyle={Button.WARNING}\n variant={Button.VARIANT_ACTION}\n iconName='rioglyph-warning-sign'\n className='text-size-20'\n >\n Click me!\n </Button>\n <Button\n bsStyle={Button.DANGER}\n variant={Button.VARIANT_ACTION}\n iconName='rioglyph-error-sign'\n className='text-size-16'\n >\n Click me!\n </Button>\n <Button\n bsStyle={Button.MUTED}\n variant={Button.VARIANT_ACTION}\n iconName='rioglyph-cog'\n className='text-size-14'\n >\n Click me!\n </Button>\n </ButtonToolbar>\n </div>\n);"
|
|
475
|
+
},
|
|
476
|
+
{
|
|
477
|
+
"label": "HTML",
|
|
478
|
+
"language": "html",
|
|
479
|
+
"code": "<div>\n <div class=\"text-color-dark max-width-100pct text-size-12 display-inline-block margin-bottom-5\">Action buttons</div>\n <div class=\"align-items-start btn-toolbar\">\n <button type=\"button\" class=\"btn btn-primary btn-action btn-component text-size-h1\" tabindex=\"0\">\n <span class=\"rioglyph rioglyph-truck\">\n </span>Click me!</button>\n <button type=\"button\" class=\"btn btn-success btn-action btn-component text-size-h2\" tabindex=\"0\">\n <span class=\"rioglyph rioglyph-thumbs-up\">\n </span>Click me!</button>\n <button type=\"button\" class=\"btn btn-info btn-action btn-component text-size-h3\" tabindex=\"0\">\n <span class=\"rioglyph rioglyph-info-sign\">\n </span>Click me!</button>\n <button type=\"button\" class=\"btn btn-warning btn-action btn-component text-size-20\" tabindex=\"0\">\n <span class=\"rioglyph rioglyph-warning-sign\">\n </span>Click me!</button>\n <button type=\"button\" class=\"btn btn-danger btn-action btn-component text-size-16\" tabindex=\"0\">\n <span class=\"rioglyph rioglyph-error-sign\">\n </span>Click me!</button>\n <button type=\"button\" class=\"btn btn-muted btn-action btn-component text-size-14\" tabindex=\"0\">\n <span class=\"rioglyph rioglyph-cog\">\n </span>Click me!</button>\n </div>\n</div>"
|
|
480
|
+
},
|
|
481
|
+
{
|
|
482
|
+
"label": "Props",
|
|
483
|
+
"language": "json",
|
|
484
|
+
"code": null,
|
|
485
|
+
"props": [
|
|
486
|
+
{
|
|
487
|
+
"heading": null,
|
|
488
|
+
"rows": [
|
|
489
|
+
{
|
|
490
|
+
"name": "disabled",
|
|
491
|
+
"type": "Boolean",
|
|
492
|
+
"default": "false",
|
|
493
|
+
"description": "Set the button disabled."
|
|
494
|
+
},
|
|
495
|
+
{
|
|
496
|
+
"name": "active",
|
|
497
|
+
"type": "Boolean",
|
|
498
|
+
"default": "false",
|
|
499
|
+
"description": "Set the button toggled. Should be used in combination with \"asToggle\" prop."
|
|
500
|
+
},
|
|
501
|
+
{
|
|
502
|
+
"name": "asToggle",
|
|
503
|
+
"type": "Boolean",
|
|
504
|
+
"default": "false",
|
|
505
|
+
"description": "Use the button as a toggle button. The toggle state can be controlled viw the \"active\" prop."
|
|
506
|
+
},
|
|
507
|
+
{
|
|
508
|
+
"name": "iconOnly",
|
|
509
|
+
"type": "Boolean",
|
|
510
|
+
"default": "false",
|
|
511
|
+
"description": "Use when the content of the button is an icon only to adapt the button spacing accordingly."
|
|
512
|
+
},
|
|
513
|
+
{
|
|
514
|
+
"name": "iconName",
|
|
515
|
+
"type": "String",
|
|
516
|
+
"default": "",
|
|
517
|
+
"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."
|
|
518
|
+
},
|
|
519
|
+
{
|
|
520
|
+
"name": "iconRight",
|
|
521
|
+
"type": "Boolean",
|
|
522
|
+
"default": "false",
|
|
523
|
+
"description": "Adds right side spacing for an icon. This should be used when having navigation buttons that use an icon on the right side."
|
|
524
|
+
},
|
|
525
|
+
{
|
|
526
|
+
"name": "multiline",
|
|
527
|
+
"type": "Boolean",
|
|
528
|
+
"default": "false",
|
|
529
|
+
"description": "Defines whether the button text break into multiple lines when the button space exceeds. Multiline buttons should be used as exception only."
|
|
530
|
+
},
|
|
531
|
+
{
|
|
532
|
+
"name": "block",
|
|
533
|
+
"type": "Boolean",
|
|
534
|
+
"default": "false",
|
|
535
|
+
"description": "Defines whether the button takes up the full width of the parent element."
|
|
536
|
+
},
|
|
537
|
+
{
|
|
538
|
+
"name": "onClick",
|
|
539
|
+
"type": "Function",
|
|
540
|
+
"default": "() => {}",
|
|
541
|
+
"description": "Callback function triggered when clicking the button."
|
|
542
|
+
},
|
|
543
|
+
{
|
|
544
|
+
"name": "bsStyle",
|
|
545
|
+
"type": "String",
|
|
546
|
+
"default": "default",
|
|
547
|
+
"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"
|
|
548
|
+
},
|
|
549
|
+
{
|
|
550
|
+
"name": "bsSize",
|
|
551
|
+
"type": "String",
|
|
552
|
+
"default": "",
|
|
553
|
+
"description": "Sets the button size. Possible values are: xs, sm, md and lg or Button.XS, Button.SM, Button.MD and Button.LG"
|
|
554
|
+
},
|
|
555
|
+
{
|
|
556
|
+
"name": "variant",
|
|
557
|
+
"type": "String",
|
|
558
|
+
"default": "",
|
|
559
|
+
"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"
|
|
560
|
+
},
|
|
561
|
+
{
|
|
562
|
+
"name": "className",
|
|
563
|
+
"type": "String",
|
|
564
|
+
"default": "",
|
|
565
|
+
"description": "Additional classes to be set on the button element."
|
|
566
|
+
},
|
|
567
|
+
{
|
|
568
|
+
"name": "children",
|
|
569
|
+
"type": "any",
|
|
570
|
+
"default": "",
|
|
571
|
+
"description": "Any element to be rendered on the button."
|
|
572
|
+
}
|
|
573
|
+
]
|
|
574
|
+
}
|
|
575
|
+
]
|
|
576
|
+
}
|
|
577
|
+
]
|
|
578
|
+
}
|
|
579
|
+
]
|
|
580
|
+
}
|
|
581
|
+
],
|
|
582
|
+
"see_also": []
|
|
583
|
+
}
|