Developers
Start building
Themes/Theme SDK/Modules/sections/Defaults: GallerySection to HeadingSection

Defaults: GallerySection to HeadingSection

The defaults of @poltura/theme-sdk/sections, GallerySection to HeadingSection.

On this page
import { … } from '@poltura/theme-sdk/sections';

GallerySection

The platform's Gallery section: image grid.

GallerySection(props: ElementRenderProps<PlatformSectionSettings<'gallery'>>): ReactNode

Props: ElementRenderProps

import { overrideSection } from '@poltura/theme-sdk/elements';
import { GallerySection } from '@poltura/theme-sdk/sections';

export const framed = overrideSection('gallery', (props) => (
  <div className="theme-frame">
    <GallerySection {...props} />
  </div>
));

See also: overrideSection

HeadingSection

The platform's Heading section: standalone section title and intro.

HeadingSection(props: ElementRenderProps<PlatformSectionSettings<'heading'>>): ReactNode

Props: ElementRenderProps

import { overrideSection } from '@poltura/theme-sdk/elements';
import { HeadingSection } from '@poltura/theme-sdk/sections';

export const framed = overrideSection('heading', (props) => (
  <div className="theme-frame">
    <HeadingSection {...props} />
  </div>
));

See also: overrideSection

Last updated