mirror of
https://github.com/storybookjs/storybook.git
synced 2025-03-28 05:10:17 +08:00
26 lines
393 B
JavaScript
26 lines
393 B
JavaScript
import React from 'react';
|
|
import PropTypes from 'prop-types';
|
|
|
|
import Label from './Label';
|
|
import Input from './Input';
|
|
|
|
function Row({ label, input }) {
|
|
return (
|
|
<div>
|
|
{label}
|
|
{input}
|
|
</div>
|
|
);
|
|
}
|
|
|
|
Row.propTypes = {
|
|
label: PropTypes.instanceOf(Label),
|
|
input: PropTypes.instanceOf(Input).isRequired,
|
|
};
|
|
|
|
Row.defaultProps = {
|
|
label: null,
|
|
};
|
|
|
|
export default Row;
|