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: 204769a9dd91f097c6b51f6c40905bd2f9fc38fdc78cc2fa341e93e220bad5cf
4
- data.tar.gz: bb6e1e0cccdb2449ef41475171217103f43f57af1a20cd5aa0fdaa5b4595a7cc
3
+ metadata.gz: a4322987f8e63fc89e91fcba4aa38a7244e4ef3de8604cd3f0330ed1a17ad533
4
+ data.tar.gz: d0831011161564b4d441ebde75d607f83fbff46861a132f24adc680c66e6be32
5
5
  SHA512:
6
- metadata.gz: e06b46d42e53adbf3d1f2ece4e87145a6a1cd170bc5ff6bb66879b1ea1792e864f60a1d9dec23bf9f0004739b7f2fe6b869acfc6f0b16e392564114714ab6768
7
- data.tar.gz: f9e7110cd7c0515c8f1db888ed8121e533ea8656a23d03165f81d6650c3d96cfc25c032152c34fb2c4b0a045d6ff5f6955c5ec3197f16829f5157c8a0b66a497
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 `id` prop to set an id on the container wrapper, or use `input_options: { id: ... }` to set an id directly on the textarea element. Both can be used together if needed.
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`.
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: playbook_ui_docs
3
3
  version: !ruby/object:Gem::Version
4
- version: 16.0.0.pre.alpha.PLAY267213608
4
+ version: 16.0.0.pre.alpha.PLAY267213609
5
5
  platform: ruby
6
6
  authors:
7
7
  - Power UX