Builders for ComponentInput values used in thread and event creation.
Components are the building blocks of thread messages and custom timeline
entries. Each function returns a map shaped as ComponentInput in the
Plain GraphQL schema.
Example
components = [
ExPlain.Components.text("## Bug report"),
ExPlain.Components.plain_text("Steps to reproduce:"),
ExPlain.Components.plain_text("1. Visit /login\n2. Enter credentials"),
ExPlain.Components.divider(),
ExPlain.Components.badge("High priority", color: :red)
]
Summary
Functions
A badge/pill label.
A container for grouping components.
A copy-to-clipboard button.
A horizontal divider.
A link button.
A plain (non-markdown) text block.
A two-column row. Each cell should be a list of components.
A vertical spacer.
A markdown text block.
Types
@type component() :: map()
Functions
A badge/pill label.
Options
:color-:green,:yellow,:red,:blue, or:grey
A container for grouping components.
A copy-to-clipboard button.
A horizontal divider.
Options
:spacing_size-:xs,:s,:m(default),:l, or:xl
A link button.
A plain (non-markdown) text block.
Options
:size-:xs,:s,:m(default), or:l:color-:normal(default),:muted,:success,:warning, or:error
A two-column row. Each cell should be a list of components.
A vertical spacer.
A markdown text block.