Spaces:
Configuration error
Configuration error
Download web/libs/editor/src/components/TextNode/TextNode.jsx from bisalsaha/lebel-studio: direct link, hf CLI and curl.
- Browser
- Download file 629 Bytes
-
https://huggingface.co/spaces/bisalsaha/lebel-studio/resolve/main/web/libs/editor/src/components/TextNode/TextNode.jsx
- Command line
-
hf download hf://spaces/bisalsaha/lebel-studio/web/libs/editor/src/components/TextNode/TextNode.jsx
-
curl -L -o TextNode.jsx https://huggingface.co/spaces/bisalsaha/lebel-studio/resolve/main/web/libs/editor/src/components/TextNode/TextNode.jsx
629 Bytes
| import { Component } from "react"; | |
| import { PropTypes } from "prop-types"; | |
| export default class TextNode extends Component { | |
| render() { | |
| return ( | |
| <span | |
| data-position={this.props.position} | |
| data-overlap={this.props.overlap} | |
| key={this.props.keyNode ? this.props.keyNode : null} | |
| style={this.props.style} | |
| > | |
| {this.props.children} | |
| </span> | |
| ); | |
| } | |
| } | |
| TextNode.propTypes = { | |
| position: PropTypes.number, | |
| overlap: PropTypes.string, | |
| key: PropTypes.string, | |
| style: PropTypes.object, | |
| children: PropTypes.oneOfType([PropTypes.string, PropTypes.object]).isRequired, | |
| }; | |