bcgov / bcgov/react-shared-components
Ability to set default radio button in Radio component.
- Vorherrschende Sprache
- JavaScript
- Sterne
- 4
- Forks
- 2
- PR-Merge-Kennzahlen
- Keine gemergten PRs in 30 T.
Beschreibung
**Is your feature request related to a problem? Please describe.**
There is currently no way to set a default radio button in the Radio component. This is because the defaultChecked property of the radio input tag is not exposed as a prop in the component.
**Describe the solution you'd like**
I would like to expose this input tag attribute as a prop in the component so that a default radio button can be set by the developer.
Beitragsleitfaden
Für dieses Repository ist kein Beitragsleitfaden indexiert
Rechercherichtung
Beginne damit, die Radio-Komponente zu finden und zu untersuchen, wie ihre Eingabeattribute als Props verfügbar gemacht werden. Füge Unterstützung für das defaultChecked-Attribut des Inputs hinzu und bestätige, dass Entwickler die Prop verwenden können, um standardmäßig einen Radio-Button auszuwählen.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- javascript, react
- Bereich
- frontend
- Issue-Typ
- Feature
- Schwierigkeit
- 2/5
- Geschätzter Aufwand
- 1-3 Stunden
- Aktivitätsstatus
- Veraltet
- Klarheit
- Größtenteils klar
- Anfängerfreundlichkeit
- 42/100