DocumentationTypesInterfaces

Theme Shop Blog Posts Block

amerta


amerta / payload-types / ThemeShopBlogPostsBlock

Interface: ThemeShopBlogPostsBlock

Defined in: payload-types.ts:2033

This interface was referenced by Config's JSON-Schema via the definition "ThemeShopBlogPostsBlock".

Properties

blockName?

optional blockName: string | null

Defined in: payload-types.ts:2112


blockType

blockType: "themeShopBlogPosts"

Defined in: payload-types.ts:2113


buttonPrimary?

optional buttonPrimary: { appearance?: "default" | "link" | "outline" | "destructive" | "ghost" | "secondary" | null; label?: string | null; newTab?: boolean | null; reference?: { relationTo: "pages"; value: string | Page; } | { relationTo: "posts"; value: string | Post; } | { relationTo: "categories"; value: string | Category; } | { relationTo: "products"; value: string | Product; } | { relationTo: "collections"; value: string | Collection; } | { relationTo: "product-brands"; value: string | ProductBrand; } | null; size?: "default" | "sm" | "lg" | "xs" | null; type?: "custom" | "reference" | null; url?: string | null; }

Defined in: payload-types.ts:2046

appearance?

optional appearance: "default" | "link" | "outline" | "destructive" | "ghost" | "secondary" | null

Choose how the link should be rendered.

label?

optional label: string | null

newTab?

optional newTab: boolean | null

reference?

optional reference: { relationTo: "pages"; value: string | Page; } | { relationTo: "posts"; value: string | Post; } | { relationTo: "categories"; value: string | Category; } | { relationTo: "products"; value: string | Product; } | { relationTo: "collections"; value: string | Collection; } | { relationTo: "product-brands"; value: string | ProductBrand; } | null

size?

optional size: "default" | "sm" | "lg" | "xs" | null

Choose how the link size.

type?

optional type: "custom" | "reference" | null

url?

optional url: string | null

use {locale} to insert the current locale code into the URL


category?

optional category: string | Category | null

Defined in: payload-types.ts:2041

Select the category to limit posts from


description?

optional description: string | null

Defined in: payload-types.ts:2106


hideOnFrontend?

optional hideOnFrontend: boolean | null

Defined in: payload-types.ts:2037

Toggle to hide this section from the live website.


id?

optional id: string | null

Defined in: payload-types.ts:2111


limit?

optional limit: number | null

Defined in: payload-types.ts:2110

Number of posts to show


title

title: {[k: string]: unknown; root: { children: {[k: string]: unknown; type: any; version: number; }[]; direction: "rtl" | "ltr" | null; format: "" | "center" | "left" | "start" | "right" | "end" | "justify"; indent: number; type: string; version: number; }; }

Defined in: payload-types.ts:2091

Use Bold for 'Dimmed' text and Italic for 'Serif' text.

Index Signature

[k: string]: unknown

root

root: { children: {[k: string]: unknown; type: any; version: number; }[]; direction: "rtl" | "ltr" | null; format: "" | "center" | "left" | "start" | "right" | "end" | "justify"; indent: number; type: string; version: number; }

root.children

children: {[k: string]: unknown; type: any; version: number; }[]

Index Signature

[k: string]: unknown

root.direction

direction: "rtl" | "ltr" | null

root.format

format: "" | "center" | "left" | "start" | "right" | "end" | "justify"

root.indent

indent: number

root.type

type: string

root.version

version: number


type?

optional type: "featured" | "latest" | null

Defined in: payload-types.ts:2045

Choose to display featured posts or the latest posts