widgetti / widgetti/solara

Radio Input Component

Open
#166 4 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
2.2k
Forks
202
Avg merge
4h 36m
Merged PRs (30d)
3

Description

Hi,

It would be great to have a Radio Button component for input selection. I can see Radio and RadioGroup components in reacton.ipyvuetify. But there are no examples about the state updates. Can anyone please let me know how can I modify the below snippet to have the radio input value in state?

import solara
import reacton.ipyvuetify as rv

region, set_region = solara.use_state("Africa")
with rv.RadioGroup(label="Region", value=region):
    rv.Radio(label="Africa", value="Africa")
    rv.Radio(label="Americas", value="Americas")
    rv.Radio(label="Asia", value="Asia")
    rv.Radio(label="Europe", value="Europe")
    rv.Radio(label="Oceania", value="Oceania")
    rv.Radio(label="All", value="All")
    
print(region)

Thanks

Contributor guide

Open the contributing guide

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

Start with the reacton.ipyvuetify RadioGroup and Radio entry points and the state-handling pattern in the supplied Solara snippet. Document a working example that shows the selected radio value updating state, and verify that the example clearly demonstrates the resulting value.

Written by the indexing model from the issue text.

Assessment

Tech stack
jupyter, python
Domain
documentation, frontend
Issue type
Documentation
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.