diff --git a/lib/torch/component.ex b/lib/torch/component.ex index 7c01ca3..f5f3b65 100644 --- a/lib/torch/component.ex +++ b/lib/torch/component.ex @@ -9,9 +9,9 @@ defmodule Torch.Component do @doc """ Renders a Torch form input with label and error messages. - A `%Phoenix.HTML.Form{}` and field name may be passed to the input - to build input names and error messages, or all the attributes and - errors may be passed explicitly. + A `%Phoenix.HTML.Form{}` (see `Phoenix.HTML.Form`) and field name may be + passed to the input to build input names and error messages, or all the + attributes and errors may be passed explicitly. ## Examples @@ -36,7 +36,7 @@ defmodule Torch.Component do attr(:errors, :list, default: []) attr(:checked, :boolean, doc: "the checked flag for checkbox inputs") attr(:prompt, :string, default: nil, doc: "the prompt for select inputs") - attr(:options, :list, doc: "the options to pass to Phoenix.HTML.Form.options_for_select/2") + attr(:options, :list, doc: "the options to pass to `Phoenix.HTML.Form.options_for_select/2`") attr(:multiple, :boolean, default: false, doc: "the multiple flag for select inputs") attr(:rest, :global,