Skip to content

API Reference parrot_formdesigner.core.style

github-actions[bot] edited this page Dec 2, 2026 · 4 revisions

parrot_formdesigner.core.style

View source

Form presentation and layout style models.

This module defines the StyleSchema and related models that control how a FormSchema is presented visually, independently of the form data definition.

Class FieldSizeHint

Size hints for individual form fields.

Class FieldStyleHint

Per-field style customization hints.

Fields:

Field Type Default Description
size FieldSizeHint | None None Size hint controlling how much horizontal space the field occupies.
order int | None None Override the field's display order within its section.
css_class str | None None Additional CSS class(es) for HTML5 rendering.
variant str | None None Renderer-specific variant identifier (e.g., "outlined", "filled").

Attribute FormStyle

Class LayoutType

Available layout modes for form rendering.

Alias LocalizedString

Re-exported from parrot_formdesigner.core.types.LocalizedString.

Class StyleSchema

Presentation style configuration for a form.

StyleSchema is kept separate from FormSchema to allow the same form definition to be rendered differently in different contexts.

Fields:

Field Type Default Description
layout LayoutType LayoutType.SINGLE_COLUMN The overall layout mode.
field_styles dict[str, FieldStyleHint] | None None Per-field style overrides keyed by field_id.
show_section_numbers bool False Whether to prefix section titles with numbers.
submit_label LocalizedString 'Submit' Label for the submit button.
cancel_label LocalizedString 'Cancel' Label for the cancel button.
theme str | None None Renderer-specific theme identifier.
meta dict[str, Any] | None None Arbitrary metadata for renderer-specific extensions.

Architecture

Clients

Bots & Agents

Memory

Knowledge

Tools & Toolkits

Flows

Experts

Skills

Stores & Loaders

MCP & A2A

Server & APIs

Integrations

Outputs & A2UI

Prompts

Security

Operations

Migration

SDD Tooling

LLM Wiki

Deployment

Decisions

API Reference

Clone this wiki locally