mirror of
https://github.com/kusti8/proton-native.git
synced 2026-05-15 14:15:50 -06:00
fix: Group example (#197)
The Group example was showing multiple children in the group, contrary to the `Note` below.
This commit is contained in:
parent
57b5309128
commit
cbf7a102be
1 changed files with 5 additions and 3 deletions
|
|
@ -5,7 +5,7 @@ A named group of components.
|
|||
```jsx
|
||||
import React, { Component } from 'react';
|
||||
|
||||
import { render, Window, App, Group, TextInput } from 'proton-native';
|
||||
import { render, Window, App, Box, Group, TextInput } from 'proton-native';
|
||||
|
||||
class Example extends Component {
|
||||
render() {
|
||||
|
|
@ -13,8 +13,10 @@ class Example extends Component {
|
|||
<App>
|
||||
<Window title="Example" size={{ w: 500, h: 500 }}>
|
||||
<Group title="Login">
|
||||
<TextInput label="Username" />
|
||||
<TextInput label="Password" secure={true} />
|
||||
<Box>
|
||||
<TextInput label="Username" />
|
||||
<TextInput label="Password" secure={true} />
|
||||
</Box>
|
||||
</Group>
|
||||
</Window>
|
||||
</App>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue