MCPcopy Create free account
hub / github.com/Effect-TS/effect / makeBox

Function makeBox

packages/ui/native/test/Animation.test.ts:127–146  ·  view source on GitHub ↗
(style: Animation.Style)

Source from the content-addressed store, hash-verified

125})
126
127const makeBox = (style: Animation.Style) => {
128 let name = ""
129 const Box = Native.component({
130 name: "Box",
131 model: Schema.Null,
132 message: Schema.Never
133 }).make({
134 init: () => null,
135 update: ($) => $.model,
136 view: (h) =>
137 h.view(
138 pipe(
139 h.view.style({ height: 10 }),
140 Animation.named(name = h.id("box")),
141 Animation.style(style)
142 )
143 )
144 })
145 return { Box, name: () => name }
146}
147
148const Follow = Native.component({
149 name: "Follow",

Callers 1

Animation.test.tsFile · 0.85

Calls 5

makeMethod · 0.65
viewMethod · 0.65
styleMethod · 0.65
idMethod · 0.65
pipeFunction · 0.50

Tested by

no test coverage detected