A small, service‑focused business offering practical help for everyday needs. Clear communication, fair pricing, and dependable results.
Content Selector
Lets users switch between different content panels using tabs.
Overview
Details
Typical work includes planning, setup, and ongoing support. Projects are delivered on time with straightforward steps and simple options.
Next steps
Reach out for a quick estimate or to discuss what's needed. Responses are friendly and prompt.
---
import Heading from "@core-elements/heading/Heading.astro";
import Text from "@core-elements/text/Text.astro";
import ContentSelector from "@wrappers/content-selector/ContentSelector.astro";
import ContentSelectorPanel from "@wrappers/content-selector/ContentSelectorPanel.astro";
---
<ContentSelector label="" navigationPosition="start">
<ContentSelectorPanel title="Overview">
<Heading alignX="start" level="h2">
Overview
</Heading>
<Text alignX="start" size="md">
<p>A small, service‑focused business offering practical help for everyday needs. Clear communication, fair pricing, and dependable results.</p>
</Text>
</ContentSelectorPanel>
<ContentSelectorPanel title="Details">
<Heading alignX="start" level="h2">
Details
</Heading>
<Text alignX="start" size="md">
<p>Typical work includes planning, setup, and ongoing support. Projects are delivered on time with straightforward steps and simple options.</p>
</Text>
</ContentSelectorPanel>
<ContentSelectorPanel title="Next steps">
<Heading alignX="start" level="h2">
Next steps
</Heading>
<Text alignX="start" size="md">
<p>Reach out for a quick estimate or to discuss what's needed. Responses are friendly and prompt.</p>
</Text>
</ContentSelectorPanel>
</ContentSelector> ---
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 content panels in CSS-only tabs. Supports slot-based composition with ContentSelectorPanel children and items fallback, with navigation positions at 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:
title string | default: Section Title
The heading for the content panel.
contentSections array | default: array
navigationPosition enum | default: start
Accepted values:
-
start -
top
Slots
default
The tab items inside the selector.
Used only when the items property is not set.
Child Component:
<ContentSelectorPanel>
Properties (documented under the
items property
above):
-
title -
contentSections/slot