@themesberg/volt-react-dashboard
Version:
Volt React Dashboard is a free and open source admin dashboard template powered by React.js and Bootstrap 5
31 lines (25 loc) • 700 B
JavaScript
import React from 'react';
import { Row, Col } from '@themesberg/react-bootstrap';
import CodeEditor from "./CodeEditor";
export default (props) => {
const { title, description, example = null, imports = null, scope = {}, maxHeight = null } = props;
return (
<>
<div className="pt-2">
<Row>
<Col xs={12}>
<h2 className="fs-5">{title}</h2>
{description}
</Col>
</Row>
</div>
<div className="pb-5">
<Row className="mt-4">
<Col xs={12}>
<CodeEditor code={example} scope={scope} imports={imports} maxHeight={maxHeight} />
</Col>
</Row>
</div>
</>
);
};