Spaces:
Configuration error
Configuration error
Download web/libs/editor/src/components/Tools/Basic.jsx from bisalsaha/lebel-studio: direct link, hf CLI and curl.
- Browser
- Download file 721 Bytes
-
https://huggingface.co/spaces/bisalsaha/lebel-studio/resolve/main/web/libs/editor/src/components/Tools/Basic.jsx
- Command line
-
hf download hf://spaces/bisalsaha/lebel-studio/web/libs/editor/src/components/Tools/Basic.jsx
-
curl -L -o Basic.jsx https://huggingface.co/spaces/bisalsaha/lebel-studio/resolve/main/web/libs/editor/src/components/Tools/Basic.jsx
721 Bytes
| import { Component } from "react"; | |
| import { Button, Tooltip } from "@humansignal/ui"; | |
| import { observer } from "mobx-react"; | |
| import styles from "./Styles.module.css"; | |
| export default observer( | |
| class BasicToolView extends Component { | |
| render() { | |
| return ( | |
| <Tooltip title={this.props.tooltip} alignment="top-left"> | |
| <Button | |
| shape="circle" | |
| variant={this.props.selected ? "primary" : "neutral"} | |
| disabled={!!this.props.disabled} | |
| leading={this.props.icon} | |
| className={styles.button} | |
| onClick={this.props.onClick} | |
| aria-label={this.props.tooltip || "Tool button"} | |
| /> | |
| </Tooltip> | |
| ); | |
| } | |
| }, | |
| ); | |