{"id":"red-blox/eye","name":"eye","scope":"red-blox","platform":"roblox","description":"Mirrored from the Wally registry.","version":"0.1.1","latest":"0.1.1","versions":["0.1.0","0.1.1"],"license":"MIT","licenseRating":"safe","licenseCaveats":[],"licenseVerified":true,"dependencies":{},"integrity":"22b8c6ca1b53f8bf04b7eb0439923c3120acd9659f896b06a22ac46f741abf70","likes":0,"downloads":0,"install":"forest install red-blox/eye","url":"https://forest.dev/p/roblox/red-blox/eye","files":"https://api.forest.dev/ai/package/roblox/red-blox/eye/files","readme":"# Eye\r\n\r\nEye is a declarative interface library for Roblox.\r\n\r\n## Usage\r\n\r\nEye is very react-like and includes functional components, hooks, and a virtual DOM.\r\n\r\n### Basic Counter Component\r\n\r\n```lua\r\nlocal Counter = Eye.Component(function(Props, Children)\r\n\tlocal Count, SetCount = Eye.useState(0)\r\n\r\n\treturn Eye.New.TextButton({\r\n\t\tAnchorPoint = Props.AnchorPoint,\r\n\t\tPosition = Props.Position,\r\n\t\tSize = Props.Size,\r\n\r\n\t\tText = tostring(Count),\r\n\r\n\t\t[\"@Activated\"] = function()\r\n\t\t\tSetCount(Count + 1)\r\n\t\tend,\r\n\t})\r\nend)\r\n```\r\n\r\n## Types\r\n\r\nEye is strictly typed, everything (except using instances) in Eye has full typings - including creating instances. As seen in the above counter example, `Eye.New` contains a function to create every instance type with full types for properties, events, and property listeners.\r\n\r\n## Installation\r\n\r\nEye can be installed using wally. Add Eye to your `wally.toml`:\r\n\r\n```toml\r\n[dependencies]\r\nEye = \"red-blox/eye@0.1.0\"\r\n```\r\n\r\nRun `wally install` to install all dependencies into the `Packages` directory.\r\n\r\n## Documentation\r\n\r\nEye currently has no documentation.\r\n\r\n## License\r\n\r\nEye is Licensed under the MIT License. See [LICENSE](LICENSE) for details.\r\n","readmeTruncated":false}