A single tweak to promote into authored JSX/TSX source. More...
#include <jsx_lock.hpp>
Public Attributes | |
| std::string | anchor_id |
| The tweak's stable_anchor_id — matched against the element's injected data-pulp-anchor="<id>" attribute. | |
| std::string | property_path |
| The canonical dotted property path used by pulp-tweaks.json (e.g. | |
| std::string | value |
| The tweaked value as it should appear in source. | |
A single tweak to promote into authored JSX/TSX source.
Mirrors the tuple the inspector tweak-store keys on: (anchor_id, property_path) → value, identical in shape to LockToSourceTweak.
| std::string pulp::view::JsxLockTweak::anchor_id |
The tweak's stable_anchor_id — matched against the element's injected data-pulp-anchor="<id>" attribute.
| std::string pulp::view::JsxLockTweak::property_path |
The canonical dotted property path used by pulp-tweaks.json (e.g.
paint.backgroundColor, style.width, layout.padding). The leading paint. / style. / layout. namespace is optional and collapses onto the JSX style={{…}} / prop surface.
| std::string pulp::view::JsxLockTweak::value |
The tweaked value as it should appear in source.
A value that looks numeric (optionally with a unit, e.g. 12, 0.5) is emitted as the right JS literal for the prop's existing form; a string value (#5a5a5a, Mike's Font) is emitted quoted.