mirror of
https://github.com/centau/vide.git
synced 2026-08-20 14:41:37 +00:00
1.6 KiB
1.6 KiB
| layout | next | hero | features | |||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| home |
|
|
|
Installation
Vide can be installed through 3 different ways.
:::tabs == Wally
Add the following line to your wally.toml and then re-install your packages
[dependencies]
vide = centau/vide@0.3.1
== Roblox
im so sorry you have to use rojo and build it yourself or ask someone in ross to build a vide rbxm for you 😭 cen is too busy working on system verilog
:::
Quick Examples
A simple counter element that counts up when you click on it.
local vide = require("vide")
local source = vide.source
local create = vide.create
local function Counter()
local count = source(0)
return create "TextButton" {
Size = UDim2.fromOffset(200, 50),
Text = function()
return `count: {count()}`
end,
Activated = function()
count(count() + 1)
end
}
end
return Counter