PhiaUiDesign.Templates.SemanticDefaults (phia_ui v0.1.17)

Copy Markdown View Source

Role-based defaults for components used in page templates.

When a template creates a semantic section (sidebar, stat area, form, etc.), these defaults provide the right PhiaUI components with appropriate attributes and layout properties for that context.

Summary

Functions

Get the default configuration for a semantic role.

List all available semantic role keys.

Functions

get(arg1)

@spec get(atom()) :: map() | nil

Get the default configuration for a semantic role.

Returns a map with :component, :attrs, :slots, :layout, and :children keys describing how to build that section.

keys()

@spec keys() :: [atom()]

List all available semantic role keys.