Build one Human Body figure inyour web Page using React. Show the parts you want and click on them to select it.
npm install reactjs-human-bodyBuild one Human Body figure inyour web Page using React.
Show the parts you want and click on them to select it.
See the Live demo.
``tsx
import { BodyComponent } from 'reactjs-human-body';
const exampleParams = {
head: { selected: true },
left_arm: { show: false }
}
export function App() {
const [params, setParams] = useState
const [bodyModel, setBodyModel] = useState
const onChange = (parts: PartsInput) => console.log('Changed Parts:', parts);
const onClick = (id: string) => console.log('Changed Id:', id);
return (
onChange={onChange}
onClick={onClick}
/>
)
}
``
* Individual Protection Equipment (helmet...)
To contribute check the Contribute.