MCPcopy
hub / github.com/reflex-dev/reflex / add_style

Method add_style

tests/units/components/test_component.py:2048–2053  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

2046 tag = "StyledComponent"
2047
2048 def add_style(self): # pyright: ignore [reportIncompatibleMethodOverride]
2049 return {
2050 "color": v1,
2051 "fake": v2,
2052 "margin": f"{test_state.num}%",
2053 }
2054
2055 page = rx.vstack(StyledComponent.create())
2056 page._add_style_recursive(Style())

Callers

nothing calls this directly

Calls 1

StyleClass · 0.90

Tested by

no test coverage detected