From 2859e4ce81659b732eee6243acc7f04ccf22e428 Mon Sep 17 00:00:00 2001 From: Angelika Tyborska Date: Thu, 18 Jul 2024 16:49:21 +0200 Subject: [PATCH] Fix function names in documentation for new form components (#132) --- lib/bitstyles_phoenix/component/form.ex | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/bitstyles_phoenix/component/form.ex b/lib/bitstyles_phoenix/component/form.ex index cbfd34e..a7ca967 100644 --- a/lib/bitstyles_phoenix/component/form.ex +++ b/lib/bitstyles_phoenix/component/form.ex @@ -8,7 +8,7 @@ defmodule BitstylesPhoenix.Component.Form do Components for rendering input elements. Use `ui_input`, `ui_select`, `ui_textarea` to render the respective inputs together with a label and errors. - Alternatively, this module also provides `input` and `label` functions that can be used to render only an input or only a label. + Alternatively, this module also provides `ui_raw_input` and `ui_raw_label` functions that can be used to render only an input or only a label. ## Common attributes @@ -17,7 +17,7 @@ defmodule BitstylesPhoenix.Component.Form do - `form` *(required)* - The form to render the input form. - `field` *(required)* - The name of the field for the input. - `label` - The text to be used as label. Defaults to a title-cased name of the field. - - `label_opts` - The options passed to the label element generated with `BitstylesPhoenix.Component.Form.label/1`. + - `label_opts` - The options passed to the label element generated with `BitstylesPhoenix.Component.Form.ui_raw_label/1`. For details on how to render a form, see: - `simple_form` core component in a freshly-generated Phoenix app, or