UNPKG

@wq/material-web

Version:

Web bindings for @wq/material

31 lines (30 loc) 772 B
import React from "react"; import { Card, Typography, CardContent } from "@mui/material"; import PropTypes from "prop-types"; export default function Fieldset({ label, children }) { return /*#__PURE__*/ React.createElement( Card, { sx: { mb: 2, }, }, /*#__PURE__*/ React.createElement( CardContent, null, label && /*#__PURE__*/ React.createElement( Typography, { color: "textSecondary", }, label ), children ) ); } Fieldset.propTypes = { label: PropTypes.string, children: PropTypes.node, };