Sha256: 68a4fdbb95c056d3ddb3242fe353285cfa119ce1b4dad4ddd15d6aeec58ead61

Contents?: true

Size: 1.34 KB

Versions: 327

Compression:

Stored size: 1.34 KB

Contents

import React from 'react'
import Radio from '../_radio'
import Select from '../../pb_select/_select'
import Typeahead from '../../pb_typeahead/_typeahead'
import Title from '../../pb_title/_title'

const RadioChildren = (props) => {


  const options = [
    { label: 'Orange', value: 'Orange' },
    { label: 'Red', value: 'Red' },
    { label: 'Green', value: 'Green' },
    { label: 'Blue', value: 'Blue' },
  ]

  return (
    <div>
      <Radio
          customChildren
          label="Select"
          marginBottom="sm"
          name="Group1"
          tabIndex={0}
          value="Select"
          {...props}
      >
        <Select
            marginBottom="none"
            minWidth="xs"
            options={options}
        />
      </Radio>
      <Radio
          customChildren
          label="Typeahead"
          marginBottom="sm"
          name="Group1"
          tabIndex={0}
          value="Typeahead"
          {...props}
      >
        <Typeahead 
            marginBottom="none"
            minWidth="xs"
            options={options}
        />
      </Radio>
      <Radio
          customChildren
          defaultChecked={false}
          label="Typography"
          name="Group1"
          value="Typography"
          {...props}
      >
        <Title text="Custom Typography" />
      </Radio>
    </div>
  )
}
export default RadioChildren

Version data entries

327 entries across 327 versions & 2 rubygems

Version Path
playbook_ui_docs-14.8.0.pre.alpha.PLAY1649rolloutheightglobalprops4635 app/pb_kits/playbook/pb_radio/docs/_radio_custom_children.jsx
playbook_ui-14.8.0.pre.alpha.PLAY1649rolloutheightglobalprops4635 app/pb_kits/playbook/pb_radio/docs/_radio_custom_children.jsx
playbook_ui_docs-14.9.0.pre.rc.8 app/pb_kits/playbook/pb_radio/docs/_radio_custom_children.jsx
playbook_ui-14.9.0.pre.rc.8 app/pb_kits/playbook/pb_radio/docs/_radio_custom_children.jsx
playbook_ui_docs-14.8.0.pre.alpha.PLAY1598floatinguiupgrade4617 app/pb_kits/playbook/pb_radio/docs/_radio_custom_children.jsx
playbook_ui-14.8.0.pre.alpha.PLAY1598floatinguiupgrade4617 app/pb_kits/playbook/pb_radio/docs/_radio_custom_children.jsx
playbook_ui_docs-14.9.0.pre.rc.7 app/pb_kits/playbook/pb_radio/docs/_radio_custom_children.jsx
playbook_ui-14.9.0.pre.rc.7 app/pb_kits/playbook/pb_radio/docs/_radio_custom_children.jsx
playbook_ui_docs-14.9.0.pre.rc.6 app/pb_kits/playbook/pb_radio/docs/_radio_custom_children.jsx
playbook_ui-14.9.0.pre.rc.6 app/pb_kits/playbook/pb_radio/docs/_radio_custom_children.jsx
playbook_ui_docs-14.9.0.pre.rc.5 app/pb_kits/playbook/pb_radio/docs/_radio_custom_children.jsx
playbook_ui-14.9.0.pre.rc.5 app/pb_kits/playbook/pb_radio/docs/_radio_custom_children.jsx
playbook_ui_docs-14.8.0.pre.alpha.pbntr661createstickyleftprop4612 app/pb_kits/playbook/pb_radio/docs/_radio_custom_children.jsx
playbook_ui-14.8.0.pre.alpha.pbntr661createstickyleftprop4612 app/pb_kits/playbook/pb_radio/docs/_radio_custom_children.jsx
playbook_ui_docs-14.8.0.pre.alpha.play1648heightglobalprops4606 app/pb_kits/playbook/pb_radio/docs/_radio_custom_children.jsx
playbook_ui-14.8.0.pre.alpha.play1648heightglobalprops4606 app/pb_kits/playbook/pb_radio/docs/_radio_custom_children.jsx
playbook_ui_docs-14.9.0.pre.rc.4 app/pb_kits/playbook/pb_radio/docs/_radio_custom_children.jsx
playbook_ui-14.9.0.pre.rc.4 app/pb_kits/playbook/pb_radio/docs/_radio_custom_children.jsx
playbook_ui_docs-14.9.0.pre.rc.3 app/pb_kits/playbook/pb_radio/docs/_radio_custom_children.jsx
playbook_ui-14.9.0.pre.rc.3 app/pb_kits/playbook/pb_radio/docs/_radio_custom_children.jsx