From 776f2d4c443707113e99a144d74e332bcf26a645 Mon Sep 17 00:00:00 2001 From: Carlos Bravo Date: Mon, 4 Mar 2024 10:15:53 +0100 Subject: [PATCH 1/2] Add withScope description --- packages/interactivity/docs/api-reference.md | 34 +++++++++++++++++--- 1 file changed, 29 insertions(+), 5 deletions(-) diff --git a/packages/interactivity/docs/api-reference.md b/packages/interactivity/docs/api-reference.md index 319a3974430140..e2cb6da206950f 100644 --- a/packages/interactivity/docs/api-reference.md +++ b/packages/interactivity/docs/api-reference.md @@ -125,7 +125,7 @@ Different contexts can be defined at different levels, and deeper levels will me ### `wp-bind` -This directive allows setting HTML attributes on elements based on a boolean or string value. It follows the syntax `data-wp-bind--attribute`. +This directive allows setting HTML attributes on elements based on a boolean or string value. It follows the syntax `data-wp-bind--attribute`. ```html
  • @@ -225,7 +225,7 @@ The boolean value received by the directive is used to toggle (add when `true` o ### `wp-style` -This directive adds or removes inline style to an HTML element, depending on its value. It follows the syntax `data-wp-style--css-property`. +This directive adds or removes inline style to an HTML element, depending on its value. It follows the syntax `data-wp-style--css-property`. ```html
    @@ -299,7 +299,7 @@ The returned value is used to change the inner content of the element: `
    val ### `wp-on` -This directive runs code on dispatched DOM events like `click` or `keyup`. The syntax is `data-wp-on--[event]` (like `data-wp-on--click` or `data-wp-on--keyup`). +This directive runs code on dispatched DOM events like `click` or `keyup`. The syntax is `data-wp-on--[event]` (like `data-wp-on--click` or `data-wp-on--keyup`). ```php