Документация пока доступна только на английском языке. Остальная часть сайта соответствует вашему языку.
Core blocks
The core block types plus the built-in Post List and Comments: content, media, responsive layout, reusable content, sections, template context, and site chrome.
7 минута чтения
Registered in @justflows/blocks and exposed at GET /api/blocks. Type ids are stable (core.*).
| Type | Title | Category | Main props |
|---|---|---|---|
core.paragraph | Paragraph | content | richtext text |
core.heading | Heading | content | text, level 1–6 (default 2) |
core.quote | Quote | content | richtext text, attribution |
core.button | Button | content | label and href (typed URL or page/post picker; sanitized) |
core.link-list | Link List | content | optional heading and reorderable links |
core.html | HTML | content | sanitized HTML, wrapped in one <div class="jf-html"> so block styles and scoped CSS apply to every top-level node |
core.code | Code | content | code listing |
core.image | Image | media | src (media), alt, caption |
core.embed | Embed | media | embed URL |
| Type | Title | Notes |
|---|---|---|
core.divider | Divider | Horizontal rule. |
core.spacer | Spacer | Vertical space. |
core.section | Section | Children wrapper. |
core.container | Container | Width-constrained children. |
core.group | Group | Generic children group. |
core.columns | Columns | Children should be core.column. |
core.column | Column | One column inside columns. |
core.grid | Grid | Responsive column grid; move and resize any child visually or enter its exact placement. |
core.reusable | Reusable block | Linked reference to a saved library block, resolved on the server. |
| Type | Title | Use |
|---|---|---|
core.color-scheme | Light / dark | Light, dark, or Auto (follow the visitor's device). |
core.language-switcher | Language switcher | Full locale, short locale, flags, flag and locale, or flag and country-name styles, each an accessible dropdown. |
core.auth-links | Login / register | Account links; registration appears publicly only when enabled in Settings. |
justflows.blog.post-list | Post List | Paginated published posts in a grid or list, with optional images, dates, and excerpts. |
justflows.comments.thread | Comments | Threaded approved discussion plus a guarded submission form; see Comments. |
| Type | Title | Use |
|---|---|---|
core.hero | Hero | Page intro band. |
core.features | Features | Feature grid. |
core.cta | Call to Action | Closing conversion band. |
The core.color-scheme (light/dark) block ships several designs — a two/three-button segmented control, a single sun/moon toggle, a switch, a compact dropdown, plain text labels, or icon buttons with tooltips — each selectable per block with size, radius, overridable icons and labels, and an optional animated icon change that respects prefers-reduced-motion. All variants share one CSP-safe preference engine.
Templates add context blocks that render the current request's content: core.post-title, core.post-content, core.post-meta, core.post-excerpt, core.featured-image, and core.template-part. See Templates.
Good to know
Images use loading="lazy" and safeMediaSrc. Buttons and embeds refuse unsafe URLs. Custom HTML is sanitized, not blindly echoed.