Vibe.TUI.Presentation.ToolCard (vibe v0.2.3)

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.Terminal.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.Terminal.Theme.t()) :: IO.chardata()

status_icon(status, theme)

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

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

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

title(tool, width, theme, opts)

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