Skip to content

Commit

Permalink
Fix function names in documentation for new form components (#132)
Browse files Browse the repository at this point in the history
  • Loading branch information
angelikatyborska authored Jul 18, 2024
1 parent cbbd0d0 commit 2859e4c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/bitstyles_phoenix/component/form.ex
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 2859e4c

Please sign in to comment.