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

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: fbd6fb7a55bed07aabf48add7a6f4beda7900a9bac30b68b102369ab9aed0798
4
- data.tar.gz: 5e129ea89ba5e5c988bc25801b984cae125f399bd5cd46a1f7e5deee87c47d53
3
+ metadata.gz: f53441a6b3a731ffc112e6cb5a5f5a2985561ffce5f50987a0096b8055b080c4
4
+ data.tar.gz: afdb29ba597e68dc04fcf29612076785c9c18b54330c182cc5e82be6f3b9279e
5
5
  SHA512:
6
- metadata.gz: fd8b0a56bf19a5d44c9347b3a5d1de7271f2f5d30bd8f843f1993455ecaa495f3fe09dd9799086d5ec07fd67a2b8f2a764a9596320d1ea247809c1aba0b08646
7
- data.tar.gz: 5fb064ab05c80decba073c7efa542b23db6cfdb2eb433bec890e1bbd3fda142e2b8fb2df77530117e72537efb20250abae8b1e71c4df0fe8989d13c75fc54d4d
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'