Forest Logo
search
package_2

eye

By @red-blox

Roblox

Mirrored

Eye

Eye is a declarative interface library for Roblox.

Usage

Eye is very react-like and includes functional components, hooks, and a virtual DOM.

Basic Counter Component

local Counter = Eye.Component(function(Props, Children)
	local Count, SetCount = Eye.useState(0)

	return Eye.New.TextButton({
		AnchorPoint = Props.AnchorPoint,
		Position = Props.Position,
		Size = Props.Size,

		Text = tostring(Count),

		["@Activated"] = function()
			SetCount(Count + 1)
		end,
	})
end)

Types

Eye 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.

Installation

Eye can be installed using wally. Add Eye to your wally.toml:

[dependencies]
Eye = "red-blox/eye@0.1.0"

Run wally install to install all dependencies into the Packages directory.

Documentation

Eye currently has no documentation.

License

Eye is Licensed under the MIT License. See LICENSE for details.

Package Details

Install command (Click to copy)


Version

0.1.1

License

MIT

check_circle

Safe for commercial use

Automated license review — not legal advice.