2020-09-01 14:51:59 +00:00
|
|
|
import React from "react";
|
|
|
|
import { Title } from "@patternfly/react-core";
|
2020-08-28 05:23:39 +00:00
|
|
|
|
2020-09-01 14:51:59 +00:00
|
|
|
import style from "./form-panel.module.css";
|
2020-08-28 05:23:39 +00:00
|
|
|
|
|
|
|
interface FormPanelProps extends React.HTMLProps<HTMLFormElement> {
|
|
|
|
title: string;
|
|
|
|
}
|
|
|
|
|
|
|
|
export const FormPanel = (props: FormPanelProps) => {
|
|
|
|
const { title, children, ...rest } = props;
|
|
|
|
return (
|
|
|
|
<section {...rest} className={style.panel}>
|
|
|
|
<Title headingLevel="h4" size="xl" className={style.title}>
|
|
|
|
{title}
|
|
|
|
</Title>
|
|
|
|
{children}
|
|
|
|
</section>
|
|
|
|
);
|
|
|
|
};
|