[GH-ISSUE #145] Code examples in documentation #88

Closed
opened 2026-05-05 11:40:27 -06:00 by gitea-mirror · 3 comments
Owner

Originally created by @faraazahmad on GitHub (May 24, 2018).
Original GitHub issue: https://github.com/kusti8/proton-native/issues/145

It would be nice to have code examples in the documentation for the props, as sometimes it can be hard to tell how to use a component and its props (especially for beginners)

Originally created by @faraazahmad on GitHub (May 24, 2018). Original GitHub issue: https://github.com/kusti8/proton-native/issues/145 It would be nice to have code examples in the documentation for the props, as sometimes it can be hard to tell how to use a component and its props (especially for beginners)
gitea-mirror 2026-05-05 11:40:27 -06:00
Author
Owner

@mischnic commented on GitHub (May 24, 2018):

So you mean:

          <RadioButtons selected={1} onSelect={v => console.log(`option no. ${v} got selected`)}>
            <RadioButtons.Item>Option 1</RadioButtons.Item>
            <RadioButtons.Item>Option 2</RadioButtons.Item>
          </RadioButtons>

instead of

          <RadioButtons>
            <RadioButtons.Item>Option 1</RadioButtons.Item>
            <RadioButtons.Item>Option 2</RadioButtons.Item>
          </RadioButtons>
<!-- gh-comment-id:391789188 --> @mischnic commented on GitHub (May 24, 2018): So you mean: ```jsx <RadioButtons selected={1} onSelect={v => console.log(`option no. ${v} got selected`)}> <RadioButtons.Item>Option 1</RadioButtons.Item> <RadioButtons.Item>Option 2</RadioButtons.Item> </RadioButtons> ``` instead of ```jsx <RadioButtons> <RadioButtons.Item>Option 1</RadioButtons.Item> <RadioButtons.Item>Option 2</RadioButtons.Item> </RadioButtons> ```
Author
Owner

@faraazahmad commented on GitHub (May 24, 2018):

Yeah something like that. Also, I was thinking to show separate examples for each prop.

<!-- gh-comment-id:391823616 --> @faraazahmad commented on GitHub (May 24, 2018): Yeah something like that. Also, I was thinking to show separate examples for each prop.
Author
Owner

@kusti8 commented on GitHub (Jan 19, 2020):

Proton Native V2 is now released! If the issue still occurs in the new update, please open a new issue.

<!-- gh-comment-id:576029490 --> @kusti8 commented on GitHub (Jan 19, 2020): Proton Native V2 is now released! If the issue still occurs in the new update, please open a new issue.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: github-starred/proton-native#88
No description provided.