playbook_ui_docs 14.3.1.pre.alpha.dhhuynh2patch13743 → 14.3.2.pre.alpha.PBNTR480radiocustomchildrenprop3759

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: 92f2597f89bc3d3c5e629b358a983bf928ffbd017ce22d8393218ab425eae835
4
- data.tar.gz: b0f247526ee751ba2aa03ad142c3b2efb6cc617472c922acddbf617489c6645b
3
+ metadata.gz: f53441a6b3a731ffc112e6cb5a5f5a2985561ffce5f50987a0096b8055b080c4
4
+ data.tar.gz: afdb29ba597e68dc04fcf29612076785c9c18b54330c182cc5e82be6f3b9279e
5
5
  SHA512:
6
- metadata.gz: bff5dbad8253644e7c4cc977918cfc4885210774c2e6c138ab11f7f281ca5131fc349dfba60ff93effe6e2e56e0b51c36fab2a80a9b8bc250374613f01f65b3f
7
- data.tar.gz: 0ec66c9ff48afaf51710d30ac96cc488964a0b4454ab2b5007ac8846768c8aceaba8eb9d234416d6172441a0887416138a111c8967aec45fe4e88c7a6f58cd34
6
+ metadata.gz: 96b72d5db6ae47c03314e61e6ad736c479a607ca9ef33b8f2f7c8a44d44fec6c166e9433058d33d107f905ab7c322f0d52e1ca842d51f9adb01071aa895bfadb
7
+ data.tar.gz: bf71dfc318689206f06cd0999878d84e7546328be8178c984f163343b7d619a6b3245e41d411def27e92544cbbf62acd7a525c4edd975bf8b5e2819436b0ce9b
@@ -0,0 +1,48 @@
1
+ <%
2
+ options = [
3
+ { label: "Orange", value: "Orange" },
4
+ { label: "Red", value: "Red" },
5
+ { label: "Green", value: "Green" },
6
+ { label: "Blue", value: "Blue" },
7
+ ]
8
+ %>
9
+
10
+ <%= pb_rails("radio", props: {
11
+ custom_children: true,
12
+ label: "Select",
13
+ name: "Group1",
14
+ value: "Select",
15
+ }) do %>
16
+ <%= pb_rails("select", props: {
17
+ min_width: "xs",
18
+ options: options,
19
+ }) %>
20
+ <% end %>
21
+
22
+ <%= pb_rails("radio", props: {
23
+ custom_children: true,
24
+ label: "Typeahead",
25
+ name: "Group1",
26
+ value: "Typeahead",
27
+ }) do %>
28
+ <%= pb_rails("typeahead", props: {
29
+ id: "typeahead-radio",
30
+ is_multi: false,
31
+ min_width: "xs",
32
+ options: options,
33
+ placeholder: "Select...",
34
+ })
35
+ %>
36
+ <% end %>
37
+
38
+ <%= pb_rails("radio", props: {
39
+ custom_children: true,
40
+ label: "Typography",
41
+ name: "Group1",
42
+ value: "Typography",
43
+ }) do %>
44
+ <%= pb_rails("title", props: {
45
+ text: "Custom Typography",
46
+ })
47
+ %>
48
+ <% end %>
@@ -0,0 +1 @@
1
+ Use the `custom_children` prop to enable the use of kits instead of text labels.
@@ -7,6 +7,7 @@ examples:
7
7
  - radio_options: With Options
8
8
  - radio_alignment: Alignment
9
9
  - radio_disabled: Disabled
10
+ - radio_custom_children: Custom Children
10
11
 
11
12
  react:
12
13
  - radio_default: Default
@@ -14,7 +15,6 @@ examples:
14
15
  - radio_error: With Error
15
16
  - radio_alignment: Alignment
16
17
  - radio_disabled: Disabled
17
- - radio_children: Children
18
18
 
19
19
  swift:
20
20
  - radio_default_swift: Default
@@ -3,4 +3,3 @@ export { default as RadioCustom } from './_radio_custom.jsx'
3
3
  export { default as RadioError } from './_radio_error.jsx'
4
4
  export { default as RadioAlignment } from './_radio_alignment.jsx'
5
5
  export { default as RadioDisabled } from './_radio_disabled.jsx'
6
- export { default as RadioChildren } from './_radio_children.jsx'