Jasonette / Jasonette/documentation
add core UI component for on-off (boolean) component
Nobody has claimed this yet.
- Dominant language
- No language data
- Stars
- 120
- Forks
- 72
- PR merge metrics
- No merged PRs in 30d
Description
There is currently no UI component to represent a boolean state (on/off, true/false, etc).
On iOS this would be a [switch](https://developer.apple.com/ios/human-interface-guidelines/ui-controls/switches/)
On modern Android this is also now a [switch](https://developer.android.com/guide/topics/ui/controls/togglebutton.html) (historically in older, pre v4 versions they were "togglebuttons").
Following existing components I would expect syntax like:
```
{
"type" : "switch",
"text" : "switch label",
"on_text" : "only on Android?",
"off_text" : "only on Android?",
"state" : "off",
"style": {
"on_colour" : "#00000",
"off_colour" : "#00000",
...
},
"action" : {
}
}
```
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
The issue names no files, tests, or entry points. Start by reviewing the existing component documentation and the linked iOS and Android switch guidance; resolve the proposed syntax and platform-specific behavior. Done means the boolean component is documented with its state, labels, styling, and action behavior.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- android, ios
- Domain
- mobile
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100