Jasonette / Jasonette/documentation

add core UI component for on-off (boolean) component

Open
#79 0 comments 0 reactions 0 assignees View on GitHub

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

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.