{"id":"lettuce-magician/stir","name":"stir","scope":"lettuce-magician","platform":"roblox","description":"A module full of fusion utilities.","version":"1.0.0","latest":"1.0.0","versions":["1.0.0"],"license":"MIT","licenseRating":"safe","licenseCaveats":[],"licenseVerified":true,"dependencies":{"elttob/fusion":{"version":"^0.2.0","alias":"Fusion"}},"integrity":"2c3ae627f079256c5faf5accfc6744ae29564269a060a85b226b1740a80aaed6","likes":0,"downloads":0,"install":"forest install lettuce-magician/stir","url":"https://forest.dev/p/roblox/lettuce-magician/stir","files":"https://api.forest.dev/ai/package/roblox/lettuce-magician/stir/files","readme":"<div align=\"center\">\r\n\r\n<img src=\"Stir.svg\" width=100px height=100px/>\r\n\r\n# Stir\r\nA collection of Fusion States and Utilities that improve the developer experience.\r\n<h3><a href=\"https://lettuce-magician.github.io/Stir/\"><u>View docs →</u></a></h3>\r\n\r\n---\r\n\r\n### Code Snippets\r\n\r\n</div>\r\n\r\n**Components**\r\n```lua\r\nlocal Button = Component({Text=\"string\", Activated=\"function\"}, function(Props)\r\n    return New \"TextButton\" {\r\n        [OnEvent \"Activated\"] = Props.Activated\r\n    }\r\nend)\r\n\r\nlocal Test = Button {\r\n    Text = \"Hello World!\",\r\n    Activated = function()\r\n        print(\"Clicked!\")\r\n    end\r\n}\r\n\r\nprint(Test.Text) --> Hello World!\r\n```\r\n**Reactive Statements**\r\n```lua\r\nlocal State = Value(false)\r\nlocal CheckBox = New \"ImageButton\" {\r\n    [If(State)] = { -- Updates whenver the value `State` changes.\r\n        Text = \"Activated\",\r\n        [Else] = { -- If the state value is false\r\n            Text = \"Deactivated\"\r\n        }\r\n    },\r\n    [OnEvent \"Activated\"] = function()\r\n        State:set(not State:get())\r\n    end\r\n}\r\n```\r\n**Child Hydration**\r\n```lua\r\nlocal Frame = New \"Frame\" {\r\n\t[Children] = {\r\n\t\tNew \"UIStroke\" {}\r\n\t}\r\n}\r\n\r\nprint(Frame.UIStroke.Color) --> 0, 0, 0\r\n\r\nHydrate (Frame) {\r\n\t[Child \"UIStroke\"] = {\r\n\t\tColor = Color3.new(1,1,1)\r\n\t}\r\n}\r\n\r\nprint(Frame.UIStroke.Color) --> 1, 1, 1\r\n```\r\n\r\n## Notices\r\n- Pull Requests and Issues are welcome! I read all of them.\r\n","readmeTruncated":false}