mirror of
https://github.com/NoRedInk/noredink-ui.git
synced 2024-12-29 16:44:41 +03:00
styleguide shows writing textinput without label and in error
This commit is contained in:
parent
3c4a0fd201
commit
745eda419e
@ -85,11 +85,33 @@ example parentMessage state =
|
||||
}
|
||||
, Html.h3 [] [ Html.text "Writing Style" ]
|
||||
, TextInput.writing
|
||||
{ label = "Criterion"
|
||||
{ label = "Writing!"
|
||||
, isInError = False
|
||||
, placeholder = "For example, \"Something!!\""
|
||||
, value = Maybe.withDefault "" <| Dict.get 2 state.textInputValues
|
||||
, onInput = SetTextInput 2
|
||||
, placeholder = "Writing is good for me and my family"
|
||||
, value = Maybe.withDefault "" <| Dict.get 4 state.textInputValues
|
||||
, onInput = SetTextInput 4
|
||||
, autofocus = False
|
||||
, type_ = TextInput.text
|
||||
, showLabel = True
|
||||
}
|
||||
, Html.br [] []
|
||||
, TextInput.writing
|
||||
{ label = "Writing with errors!"
|
||||
, isInError = True
|
||||
, placeholder = "Oopsie!"
|
||||
, value = Maybe.withDefault "" <| Dict.get 5 state.textInputValues
|
||||
, onInput = SetTextInput 5
|
||||
, autofocus = False
|
||||
, type_ = TextInput.text
|
||||
, showLabel = True
|
||||
}
|
||||
, Html.br [] []
|
||||
, TextInput.writing
|
||||
{ label = "Writing without labels!"
|
||||
, isInError = False
|
||||
, placeholder = "No label on this writing input!"
|
||||
, value = Maybe.withDefault "" <| Dict.get 6 state.textInputValues
|
||||
, onInput = SetTextInput 6
|
||||
, autofocus = False
|
||||
, type_ = TextInput.text
|
||||
, showLabel = False
|
||||
|
Loading…
Reference in New Issue
Block a user