Vibe.TUI.ToolCard (vibe v0.2.0)

Copy Markdown View Source

Renders the shared card shell and title for TUI tool output.

Summary

Types

tool()

@type tool() :: map()

Functions

block(tool, width, theme, sections, opts \\ [])

@spec block(tool(), pos_integer(), Vibe.TUI.Theme.t(), [IO.chardata()], keyword()) ::
  [IO.chardata()]

status(tool)

@spec status(tool()) :: atom() | String.t()

status_bg(text, status, theme)

@spec status_bg(IO.chardata(), term(), Vibe.TUI.Theme.t()) :: IO.chardata()

status_icon(status, theme)

@spec status_icon(term(), Vibe.TUI.Theme.t()) :: IO.chardata()

title(tool, theme, opts \\ [])

@spec title(tool(), Vibe.TUI.Theme.t(), keyword()) :: IO.chardata()

title(tool, width, theme, opts)

@spec title(tool(), pos_integer() | nil, Vibe.TUI.Theme.t(), keyword()) ::
  IO.chardata()