UNPKG

react-antd-admin-panel

Version:

Easy prototyping admin panel using React and Antd

13 lines 595 B
import React, { useState } from "react"; import { Typography as TypographyAnt } from 'antd'; const Typography = (props) => { const model = props.model; const [label, setLabel] = useState(model._label); model.onHandleChange = (value) => { setLabel(value); }; return (React.createElement(TypographyAnt, null, React.createElement(TypographyAnt.Paragraph, { copyable: model._copyable, strong: model._strong, style: Object.assign({ whiteSpace: 'no-wrap' }, model._style) }, label))); }; export default Typography; //# sourceMappingURL=Typography.js.map