TextArea widget for the Bubblegum UI toolkit
Please check the demo

There is no dependency.
elm-app package install flarebyte/bubblegum-ui-textareaimport Bubblegum.TextArea.Adapter as Adapter
import Bubblegum.TextArea.Widget as Widget
import Bubblegum.Entity.SettingsEntity as SettingsEntity
import Bubblegum.Entity.StateEntity as StateEntity
import Bubblegum.Entity.Attribute as Attribute
type TestMsg
= OnInputContent String
attr: String -> String -> Attribute.Model
attr key value =
{ id = Nothing
, key = key
, facets = []
, values = [value]
}
adapter : Adapter.Model TestMsg
adapter = { onInput = OnInputContent }
userSettings: SettingsEntity.Model
userSettings = {
attributes = [
attr "ui:user-language" "en-GB"
]
}
settings: SettingsEntity.Model
settings = {
attributes = [
attr "ui:label" "Label for field"
]
}
state: StateEntity.Model
state = {
attributes = [
attr "ui:content" "Some text"
]
}
Widget.view adapter userSettings settings state * ui:content-language : Language of the content (String) * ui:content-right-to-left : Whether the content requires right to left (Bool) * ui:user-language : Language used by the user (String) * ui:user-right-to-left : Whether the user is using right to left (Bool)
* ui:danger-maximum-chars : Warning when over the maximum number of characters (Int) * ui:danger-maximum-words : Warning when over the maximum number of words (Int) * ui:danger-minimum-chars : Warning when under the minimum number of characters (Int) * ui:danger-minimum-words : Warning when under the minimum number of words (Int) * ui:help : Some help tip related to the field (String) * ui:label : Label related to the field (String) * ui:placeholder : Short hint describing the expected content (String) * ui:success-maximum-chars : The maximum number of characters needed for successful content (Int) * ui:success-maximum-words : The maximum number of words needed for successful content (Int) * ui:success-minimum-chars : The minimum number of characters needed for successful content (Int) * ui:success-minimum-words : The minimum number of words needed for successful content (Int) * ui:tag : Tag used to describe the field (List String)
* ui:content-id : The unique id of the content (String) * ui:content : The content of the field (String) * ui:danger-help : Help message to highlight an issue with the content (String) * ui:danger-tag : Tag representing a dangerous aspect of the content (List String) * ui:success-tag : Tag representing a successful facet of the content (List String) * ui:warning-tag : Tag representing a warning aspect of the content (List String)
See Technical design
Please read CONTRIBUTING.md for details on our code of conduct, and the process for submitting pull requests to us.
Managed automatically by Elm version rules.
See also the list of contributors who participated in this project.
This project is licensed under the BSD 3-Clause License - see the LICENSE.md file for details