Skip to content

Commit

Permalink
Wrap long lines
Browse files Browse the repository at this point in the history
  • Loading branch information
smnandre committed Dec 29, 2024
1 parent 314cbb2 commit 150718e
Showing 1 changed file with 12 additions and 8 deletions.
20 changes: 12 additions & 8 deletions src/TwigComponent/doc/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -805,10 +805,12 @@ When overriding the ``alert_message`` block, you have access to the ``message``

.. versionadded:: 2.13

The ability to refer to the scope of higher components via the ``outerScope`` variable was added in 2.13.
The ability to refer to the scope of higher components via the ``outerScope``
variable was added in 2.13.

As mentioned before, variables from lower components are merged with those from upper components. When you need
access to some properties or functions from higher components, that can be done via the ``outerScope...`` variable:
As mentioned before, variables from lower components are merged with those from
upper components. When you need access to some properties or functions from higher
components, that can be done via the ``outerScope...`` variable:

.. code-block:: twig
Expand Down Expand Up @@ -1176,12 +1178,14 @@ Component with Complex Variants (CVA)

.. deprecated:: 2.20

The ``cva`` function was deprecated in TwigComponents 2.20, and will be removed in 3.0.
The function is now provided by the ``twig/html-extra:^3.12`` package under the name `html_cva`_.
The ``cva`` function was deprecated in TwigComponents 2.20, and will be
removed in 3.0. The function is now provided by the ``twig/html-extra:^3.12``
package under the name `html_cva`_.

`CVA (Class Variant Authority)`_ originates from the JavaScript ecosystem. It enables reusable, customizable
components by managing variants (e.g., color, size). The ``cva()`` Twig function defines ``base`` classes
(always applied) and variant-specific classes:
`CVA (Class Variant Authority)`_ originates from the JavaScript ecosystem. It
enables reusable, customizable components by managing variants (e.g., color, size).
The ``cva()`` Twig function defines ``base`` classes (always applied) and variant-specific
classes:

.. code-block:: html+twig

Expand Down

0 comments on commit 150718e

Please sign in to comment.