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

Function state

packages/effect/src/ui/kit/Field.ts:436–436  ·  view source on GitHub ↗
(builder: B)

Source from the content-addressed store, hash-verified

434 // With `data-disabled`, for every part but the control, which keeps
435 // its own unless the field is disabled.
436 const state = <B extends Attributed<B>>(builder: B): B => flags(builder).attr("data-disabled", flag(disabled))
437 const describedBy = [described && descriptionId, showsError && errorId]
438 .filter((id) => id !== false).join(" ")
439 const error = p.part((b) => state(b).attrs({ id: errorId, role: "alert" }))

Callers 8

Field.tsFile · 0.70
trackFocusFunction · 0.70
Entity.test.tsFile · 0.50
AppState.tsFile · 0.50
Atom.tsFile · 0.50
makeResultFnFunction · 0.50
pullFunction · 0.50
paintCoreFunction · 0.50

Calls 3

flagFunction · 0.90
flagsFunction · 0.70
attrMethod · 0.65

Tested by

no test coverage detected