cartoon-eyes

1.0.5 • Public • Published

Cartoon Eyes for React

A React component that exports a customisable cartoon eye as inline SVG code.

Example usage

npm install cartoon-eyes

import { Eye } from 'cartoon-eyes';

function App() {
  return (
    <Eye 
      irisColor='#0000ff' 
      scleraWidth={80} 
      scleraHeight={55} 
      irisSize={80} 
      pupilWidth={30} 
      blinking={true} />
  );
}

export default App;

👉 Demo

More documentation coming soon.

Licence

MIT

Package Sidebar

Install

npm i cartoon-eyes

Weekly Downloads

0

Version

1.0.5

License

MIT

Unpacked Size

9.2 kB

Total Files

4

Last publish

Collaborators

  • tmrk