From 03f27a2b895eade538e91d812ba37d9e2bb2265d Mon Sep 17 00:00:00 2001 From: Mark Otto Date: Mon, 9 Jun 2025 05:18:42 -0700 Subject: [PATCH] Docs: add example of showing dynamic range value with output (#41516) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Julien Déramond --- site/src/content/docs/forms/range.mdx | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/site/src/content/docs/forms/range.mdx b/site/src/content/docs/forms/range.mdx index 2ead074a9f..3f1b1349b7 100644 --- a/site/src/content/docs/forms/range.mdx +++ b/site/src/content/docs/forms/range.mdx @@ -32,6 +32,27 @@ By default, range inputs “snap” to integer values. To change this, you can s Example range `} /> +## Output value + +The value of the range input can be shown using the `output` element and a bit of JavaScript. + +Example range + + + + `} /> + ## CSS ### Sass variables