playbook_ui_docs 16.0.0.pre.alpha.PLAY267213608 → 16.0.0.pre.alpha.PLAY267213609
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: a4322987f8e63fc89e91fcba4aa38a7244e4ef3de8604cd3f0330ed1a17ad533
|
|
4
|
+
data.tar.gz: d0831011161564b4d441ebde75d607f83fbff46861a132f24adc680c66e6be32
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: fe94da6ad68c6c106603829f881768cd000f28ff0f72d2e2088d172000345d7e573c7df89c17b120214ea92d578b2584229ce11b2a90d3f2ec52fc8eb1e9f1f9
|
|
7
|
+
data.tar.gz: 219f70f63ec6ce3e4e3691c40bf3696a4a4375d5116d8960ab6c3745293ee28165ac83c5e6443f9e12298837e097d3ae2bc45d6b02c0dec4fed43d110969ca38
|
|
@@ -23,3 +23,17 @@
|
|
|
23
23
|
name: "comment",
|
|
24
24
|
rows: 4
|
|
25
25
|
}) %>
|
|
26
|
+
|
|
27
|
+
<br/>
|
|
28
|
+
|
|
29
|
+
<%= pb_rails("textarea", props: {
|
|
30
|
+
label: "Data and ARIA Attributes",
|
|
31
|
+
name: "description",
|
|
32
|
+
rows: 4,
|
|
33
|
+
input_options: {
|
|
34
|
+
'aria-label': "Enter description",
|
|
35
|
+
'aria-describedby': "help-text",
|
|
36
|
+
data: { controller: "textarea", action: "focus->handleFocus" },
|
|
37
|
+
id: "description-textarea"
|
|
38
|
+
}
|
|
39
|
+
}) %>
|
|
@@ -1 +1,3 @@
|
|
|
1
|
-
Use the `
|
|
1
|
+
Use the `input_options` / `inputOptions` prop to pass additional attributes directly to the underlying `<textarea>` element instead of the outer wrapper. This is useful for applying data attributes, custom IDs, ARIA attributes, or other HTML attributes that need to be on the textarea element itself.
|
|
2
|
+
|
|
3
|
+
Additional HTML attributes (e.g. data or ARIA attributes) can also be passed directly to the `<textarea>` via `input_options`.
|