{ "component": "tabs", "fixtures": [ { "name": "default", "options": { "items": [ { "label": "Past day", "id": "past-day", "panel": { "html": "

Past day

\n\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n
Case managerCases openedCases closed
David Francis30
Paul Farmer10
Rita Patel20
\n" } }, { "label": "Past week", "id": "past-week", "panel": { "html": "

Past week

\n\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n
Case managerCases openedCases closed
David Francis2418
Paul Farmer1620
Rita Patel2427
\n" } }, { "label": "Past month", "id": "past-month", "panel": { "html": "

Past month

\n\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n
Case managerCases openedCases closed
David Francis9895
Paul Farmer122131
Rita Patel126142
\n" } }, { "label": "Past year", "id": "past-year", "panel": { "text": "There is no data for this year yet, check back later" } } ] }, "hidden": false, "description": "", "previewLayoutModifiers": [], "screenshot": false, "html": "
\n

\n Contents\n

\n \n
\n

Past day

\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n
Case managerCases openedCases closed
David Francis30
Paul Farmer10
Rita Patel20
\n
\n
\n

Past week

\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n
Case managerCases openedCases closed
David Francis2418
Paul Farmer1620
Rita Patel2427
\n
\n
\n

Past month

\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n
Case managerCases openedCases closed
David Francis9895
Paul Farmer122131
Rita Patel126142
\n
\n
\n

There is no data for this year yet, check back later

\n
\n
" }, { "name": "tabs-with-anchor-in-panel", "options": { "items": [ { "label": "Tab 1", "id": "tab-1", "panel": { "html": "

Tab 1

\n

Testing that when you click the anchor it moves to the anchor point successfully

\n

Anchor

\n

Anchor Point

\n" } }, { "label": "Tab 2", "id": "tab-2", "panel": { "html": "

Tab 2

\n" } } ] }, "hidden": false, "description": "Ensure that anchors that are in tab panels work correctly", "previewLayoutModifiers": [], "screenshot": false, "html": "
\n

\n Contents\n

\n \n
\n

Tab 1

\n

Testing that when you click the anchor it moves to the anchor point successfully

\n

Anchor

\n

Anchor Point

\n
\n
\n

Tab 2

\n
\n
" }, { "name": "classes", "options": { "classes": "app-tabs--custom-modifier", "items": [ { "label": "Tab 1", "id": "tab-1", "panel": { "text": "Information about tabs" } } ] }, "hidden": true, "description": "", "previewLayoutModifiers": [], "screenshot": false, "html": "
\n

\n Contents\n

\n \n
\n

Information about tabs

\n
\n
" }, { "name": "id", "options": { "id": "my-tabs", "items": [ { "label": "Tab 1", "id": "tab-1", "panel": { "text": "Information about tabs" } } ] }, "hidden": true, "description": "", "previewLayoutModifiers": [], "screenshot": false, "html": "
\n

\n Contents\n

\n \n
\n

Information about tabs

\n
\n
" }, { "name": "title", "options": { "title": "Custom title for Contents", "items": [ { "label": "Tab 1", "id": "tab-1", "panel": { "text": "Information about tabs" } } ] }, "hidden": true, "description": "", "previewLayoutModifiers": [], "screenshot": false, "html": "
\n

\n Custom title for Contents\n

\n \n
\n

Information about tabs

\n
\n
" }, { "name": "attributes", "options": { "attributes": { "data-attribute": "my data value" }, "items": [ { "label": "Tab 1", "id": "tab-1", "panel": { "text": "Information about tabs" } } ] }, "hidden": true, "description": "", "previewLayoutModifiers": [], "screenshot": false, "html": "
\n

\n Contents\n

\n \n
\n

Information about tabs

\n
\n
" }, { "name": "item with attributes", "options": { "items": [ { "id": "tab-1", "label": "Tab 1", "panel": { "text": "Information about tabs" }, "attributes": { "data-attribute": "my-attribute", "data-attribute-2": "my-attribute-2" } } ] }, "hidden": true, "description": "", "previewLayoutModifiers": [], "screenshot": false, "html": "
\n

\n Contents\n

\n \n
\n

Information about tabs

\n
\n
" }, { "name": "panel with attributes", "options": { "items": [ { "id": "tab-1", "label": "Tab 1", "panel": { "text": "Panel text", "attributes": { "data-attribute": "my-attribute", "data-attribute-2": "my-attribute-2" } } } ] }, "hidden": true, "description": "", "previewLayoutModifiers": [], "screenshot": false, "html": "
\n

\n Contents\n

\n \n
\n

Panel text

\n
\n
" }, { "name": "no item list", "options": { "id": "my-tabs", "classes": "app-tabs--custom-modifier" }, "hidden": true, "description": "", "previewLayoutModifiers": [], "screenshot": false, "html": "
\n

\n Contents\n

\n
" }, { "name": "empty item list", "options": { "items": [] }, "hidden": true, "description": "", "previewLayoutModifiers": [], "screenshot": false, "html": "
\n

\n Contents\n

\n
" }, { "name": "with falsy values", "options": { "items": [ { "label": "Tab 1", "id": "tab-1", "panel": { "text": "Panel 1 content" } }, null, false, "", { "label": "Tab 2", "id": "tab-2", "panel": { "text": "Panel 2 content" } } ] }, "hidden": true, "description": "", "previewLayoutModifiers": [], "screenshot": false, "html": "
\n

\n Contents\n

\n \n
\n

Panel 1 content

\n
\n
\n

Panel 2 content

\n
\n
" }, { "name": "idPrefix", "options": { "idPrefix": "custom", "items": [ { "label": "Tab 1", "panel": { "text": "Panel 1 content" } }, { "label": "Tab 2", "panel": { "text": "Panel 2 content" } } ] }, "hidden": true, "description": "", "previewLayoutModifiers": [], "screenshot": false, "html": "
\n

\n Contents\n

\n \n
\n

Panel 1 content

\n
\n
\n

Panel 2 content

\n
\n
" }, { "name": "html as text", "options": { "items": [ { "label": "Tab 1", "id": "tab-1", "panel": { "text": "

Panel 1 content

" } }, { "label": "Tab 2", "id": "tab-2", "panel": { "text": "

Panel 2 content

" } } ] }, "hidden": true, "description": "", "previewLayoutModifiers": [], "screenshot": false, "html": "
\n

\n Contents\n

\n \n
\n

<p>Panel 1 content</p>

\n
\n
\n

<p>Panel 2 content</p>

\n
\n
" }, { "name": "html", "options": { "items": [ { "label": "Tab 1", "id": "tab-1", "panel": { "html": "

Panel 1 content

" } }, { "label": "Tab 2", "id": "tab-2", "panel": { "html": "

Panel 2 content

" } } ] }, "hidden": true, "description": "", "previewLayoutModifiers": [], "screenshot": false, "html": "
\n

\n Contents\n

\n \n
\n

Panel 1 content

\n
\n
\n

Panel 2 content

\n
\n
" } ] }