mirror of
https://github.com/filecoin-project/slate.git
synced 2024-12-01 06:33:10 +03:00
79 lines
2.1 KiB
JavaScript
79 lines
2.1 KiB
JavaScript
|
import * as React from 'react';
|
||
|
import * as System from '~/components/system';
|
||
|
|
||
|
import SystemPage from '~/components/system/SystemPage';
|
||
|
|
||
|
const RADIO_GROUP_OPTIONS = [
|
||
|
{
|
||
|
value: '1',
|
||
|
label: (
|
||
|
<React.Fragment>
|
||
|
<strong>Breakfast Option</strong>
|
||
|
<br />I want to have cake and soda for breakfast.
|
||
|
</React.Fragment>
|
||
|
),
|
||
|
},
|
||
|
{
|
||
|
value: '2',
|
||
|
label: (
|
||
|
<React.Fragment>
|
||
|
<strong>Lunch Option</strong>
|
||
|
<br />I want to have cake and soda for lunch.
|
||
|
</React.Fragment>
|
||
|
),
|
||
|
},
|
||
|
{
|
||
|
value: '3',
|
||
|
label: (
|
||
|
<React.Fragment>
|
||
|
<strong>Dinner Option</strong>
|
||
|
<br />I want to have cake and soda for dinner.
|
||
|
</React.Fragment>
|
||
|
),
|
||
|
},
|
||
|
{
|
||
|
value: '4',
|
||
|
label:
|
||
|
'AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA',
|
||
|
},
|
||
|
];
|
||
|
|
||
|
export default class SystemPageRadios extends React.Component {
|
||
|
state = {
|
||
|
five: '1',
|
||
|
};
|
||
|
|
||
|
_handleChange = (e) => {
|
||
|
this.setState({ [e.target.name]: e.target.value });
|
||
|
};
|
||
|
|
||
|
render() {
|
||
|
return (
|
||
|
<SystemPage
|
||
|
title="FCDS: Radios"
|
||
|
description="This is an early preview of the Filecoin Client Design System (FCDS)."
|
||
|
url="https://fps.onrender.com/system/radios">
|
||
|
<System.H1>Radios</System.H1>
|
||
|
<br />
|
||
|
<br />
|
||
|
<System.P>
|
||
|
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore
|
||
|
magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo
|
||
|
consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla
|
||
|
pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id
|
||
|
est laborum.
|
||
|
</System.P>
|
||
|
<br />
|
||
|
<br />
|
||
|
|
||
|
<System.RadioGroup
|
||
|
name="five"
|
||
|
options={RADIO_GROUP_OPTIONS}
|
||
|
selected={this.state.five}
|
||
|
onChange={this._handleChange}
|
||
|
/>
|
||
|
</SystemPage>
|
||
|
);
|
||
|
}
|
||
|
}
|