Content Selector
Lets users switch between different content panels using tabs.
Overview
A small, service‑focused business offering practical help for everyday needs. Clear communication, fair pricing, and dependable results.
---
import Heading from "@core-elements/heading/Heading.astro";
import Text from "@core-elements/text/Text.astro";
import ContentSelector from "@wrappers/content-selector/ContentSelector.astro";
---
<ContentSelector
items={
[
{
"title": "Overview",
"contentSections": [
{
"_component": "building-blocks/core-elements/heading",
"text": "Overview",
"level": "h2",
"alignX": "start"
},
{
"_component": "building-blocks/core-elements/text",
"text": "A small, service‑focused business offering practical help for everyday needs. Clear communication, fair pricing, and dependable results.\n",
"alignX": "start",
"size": "md"
}
]
},
{
"title": "Details",
"contentSections": [
{
"_component": "building-blocks/core-elements/heading",
"text": "Details",
"level": "h2",
"alignX": "start"
},
{
"_component": "building-blocks/core-elements/text",
"text": "Typical work includes planning, setup, and ongoing support. Projects are delivered on time with straightforward steps and simple options.\n",
"alignX": "start",
"size": "md"
}
]
},
{
"title": "Next steps",
"contentSections": [
{
"_component": "building-blocks/core-elements/heading",
"text": "Next steps",
"level": "h2",
"alignX": "start"
},
{
"_component": "building-blocks/core-elements/text",
"text": "Reach out for a quick estimate or to discuss what's needed. Responses are friendly and prompt.\n",
"alignX": "start",
"size": "md"
}
]
}
]
} label="" navigationPosition="start"
/> ---
blocks:
_component: building-blocks/wrappers/content-selector
navigationPosition: start
items:
- title: Overview
contentSections:
- _component: building-blocks/core-elements/heading
text: Overview
level: h2
alignX: start
- _component: building-blocks/core-elements/text
text: |
A small, service‑focused business offering practical help for everyday needs. Clear communication, fair pricing, and dependable results.
alignX: start
size: md
- title: Details
contentSections:
- _component: building-blocks/core-elements/heading
text: Details
level: h2
alignX: start
- _component: building-blocks/core-elements/text
text: |
Typical work includes planning, setup, and ongoing support. Projects are delivered on time with straightforward steps and simple options.
alignX: start
size: md
- title: Next steps
contentSections:
- _component: building-blocks/core-elements/heading
text: Next steps
level: h2
alignX: start
- _component: building-blocks/core-elements/text
text: |
Reach out for a quick estimate or to discuss what's needed. Responses are friendly and prompt.
alignX: start
size: md
label: ''
--- Overview
Displays multiple content panels within a tabbed interface. Each item includes a title and content area. Supports configurable tab navigation positions (top or start).
Properties
label string
Optional label for the content selector to help identify it in the editor.
items array | default: array
Item Properties:
_component string | default: building-blocks/wrappers/content-selector/content-selector-item
title string | default: Section Title
The heading for the content panel.
contentSections array | default: array
navigationPosition enum | default: start
Accepted values:
-
start -
top