Class: JsxRosetta::IR::CvaAxisPair
- Inherits:
-
Data
- Object
- Data
- JsxRosetta::IR::CvaAxisPair
- Includes:
- Node
- Defined in:
- lib/jsx_rosetta/ir/types.rb
Overview
One axis-value pair inside a cva call’s options object. The discriminator ‘kind` tells the backend how to render the value:
:prop_ref — JS identifier referencing a prop (`{ variant }` or
`{ variant: someProp }`). Backends render as
`@snake_case` against the receiving Phlex component.
:literal_string — `{ variant: "default" }` — the literal value
is the variant-table key.
:literal_other — `{ size: 42 }` / `{ active: true }` — Ruby
literal passed through to the bracket key.
:literal_nil — `{ variant: null }` or `undefined`.
Instance Attribute Summary collapse
-
#axis ⇒ Object
readonly
Returns the value of attribute axis.
-
#kind ⇒ Object
readonly
Returns the value of attribute kind.
-
#source ⇒ Object
readonly
Returns the value of attribute source.
Instance Attribute Details
#axis ⇒ Object (readonly)
Returns the value of attribute axis
229 230 231 |
# File 'lib/jsx_rosetta/ir/types.rb', line 229 def axis @axis end |
#kind ⇒ Object (readonly)
Returns the value of attribute kind
229 230 231 |
# File 'lib/jsx_rosetta/ir/types.rb', line 229 def kind @kind end |
#source ⇒ Object (readonly)
Returns the value of attribute source
229 230 231 |
# File 'lib/jsx_rosetta/ir/types.rb', line 229 def source @source end |