Appearance
Sections & screens
Every template has a section registry: src/sections.config.js. It lists every section of the page (or every screen of an app, or every page of a dashboard), in order.
js
import Hero from './components/sections/Hero'
import Services from './components/sections/Services'
import Testimonials from './components/sections/Testimonials'
import Contact from './components/sections/Contact'
export const sections = [
{ id: 'home', label: 'Home', component: Hero, enabled: true },
{ id: 'services', label: 'Services', component: Services, enabled: true },
{ id: 'testimonials', label: 'Reviews', component: Testimonials, enabled: true },
{ id: 'contact', label: 'Contact', component: Contact, enabled: true },
]| Field | Meaning |
|---|---|
id | The anchor for links (#services). Must be unique. |
label | The section's name, used in some menus. |
component | The React component that draws the section. |
enabled | true shows the section, false hides it. |
Hide a section
Set enabled: false:
js
{ id: 'testimonials', label: 'Reviews', component: Testimonials, enabled: false },The section disappears from the page. Nothing else breaks, and you can turn it back on at any time.
Update the menu too
Navigation links are in src/data/content.js (usually nav, sometimes navMore or footer). If a menu links to #testimonials and you hide that section, remove the link, or it will do nothing when clicked.
Reorder sections
Move lines up or down in the sections array. The page renders them in that order.
Rename a section
- Change the heading on the page in
src/data/content.js(or in the section component). - Change the
idonly if you also update every link that points to it (href: '#old-id').
Remove a section completely
Hiding is enough for most people. If you want the code gone too:
- Delete its line from
sections.config.js. - Delete its
importline at the top of the same file. - Delete the component file, for example
src/components/sections/Testimonials.jsx. - Delete its data export from
src/data/content.js(optional; unused data does no harm). - Run
npm run buildto make sure nothing else imported it.
Add a section
- Copy an existing section component with a similar layout, for example
Services.jsx→Pricing.jsx. - Change its content (or add a
pricingexport tosrc/data/content.jsand import it). - Import it in
sections.config.jsand add a line with a newid.
js
import Pricing from './components/sections/Pricing'
// …
{ id: 'pricing', label: 'Pricing', component: Pricing, enabled: true },App templates: screens
In mobile app UI templates, sections.config.js lists screens, with two extra fields:
js
{ id: 'home', label: 'Home', component: Home, kind: 'tab', enabled: true },
{ id: 'editor', label: 'Editor', component: Editor, kind: 'push', enabled: true, bleed: true },kind | Meaning |
|---|---|
root | Shown before sign-in (onboarding, sign-in) |
tab | A bottom-tab screen |
push | Opens on top of the current screen, with a back button |
bleed: true means the screen draws under the phone's status bar (full-bleed images). Disabling a tab screen removes it from the tab bar. Before disabling a push screen, search for its id to find the buttons that open it.
Dashboard templates: pages
In dashboards, the registry lists pages (src/pages/). Extra fields control navigation:
| Field | Meaning |
|---|---|
nav | Where it appears in the sidebar group, for example 'main', 'team', or false to hide it from the sidebar |
dock | Shown in the phone bottom dock (up to 4; the 5th slot is "More") |
detail | Component used when the URL carries an ID, such as #/team/42 |
parent | Which sidebar item is highlighted while a detail page is open |
The comment at the top of each template's sections.config.js explains the fields it uses.