Skip to content

Add built-in padding to the Core Catalog items #562

@jacobsimionato

Description

@jacobsimionato

A2UI intentionally doesn't not let the LLM choose padding. Instead, we the renderer is responsible for this.

Our core catalog items have no built-in padding, so everything looks bad in the simple chat app.

How about these rules:

  • Leaf components (e.g. text, image etc) add padding around themselves on every dimension by default. They can be special cased via usage hints to not do this, e.g. a "header" image has no top or side padding, but does have bottom padding.
  • Container components which render nothing add no padding (e.g. Row, Column etc)
  • Container components which have a border (e.g. Card) add padding around themselves, but not around their children

Metadata

Metadata

Assignees

No one assigned

    Labels

    P1A high-priority issue. Someone should be assigned and actively working on it.a: core_catalogfront-line-handledCan wait until the second-line triage. The front-line triage already checked if it's a P0.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions