defmodule <%= @module %> do @moduledoc """ Headless **code** — render inline or block code (Mantine Code parity). Inline it is a ``; with `block` set it is a `
` that preserves
  whitespace — keep the slot content flush against the tags (any template indentation
  is rendered verbatim; use `phx-no-format` to keep the formatter away). Semantics
  only — bring your own font, background and padding.

  Ships **no** colors or spacing — style via `chelekom-code`.

  **Documentation:** https://mishka.tools/chelekom/docs/headless/code
  """
  use Phoenix.Component

  @doc type: :component
  attr :id, :string, default: nil, doc: "Optional unique id"

  attr :block, :boolean,
    default: false,
    doc: "Render a 
 block instead of inline "

  attr :class, :any, default: nil, doc: "Extra classes"
  attr :rest, :global

  slot :inner_block, required: true, doc: "The code content"

  def <%= @component_prefix %>code(assigns) do
    ~H"""
    
{render_slot(@inner_block)}
{render_slot(@inner_block)} """ end end