Sha256: 0cb1a5780cac12750a17e395829122f6badcf40831524338478c35f910e8cf0b

Contents?: true

Size: 1.87 KB

Versions: 2

Compression:

Stored size: 1.87 KB

Contents

import React from 'react'

import Timeline from '../_timeline'
import TimelineItem from '../_item'
import TimelineDateArea from '../_date_area'
import TimelineNodeArea from '../_node_area'
import TimelineDetailArea from '../_detail_area'
import Title from '../../pb_title/_title'
import Pill from '../../pb_pill/_pill'

import TitleDetail from '../../pb_title_detail/_title_detail'

const TimelineWithChildren = (props) => (
  <div>
    <Timeline orientation="horizontal"
        showDate
        {...props}
    >
      <TimelineItem lineStyle="solid"
          {...props}
      >
        <TimelineDateArea>
          <Title size={2}
              text='Any Kit Here'
          />
        </TimelineDateArea>
        <TimelineNodeArea icon="user"
            iconColor="royal"
        />
        <TimelineDetailArea>
          <TitleDetail detail="37-27 74th Street"
              title="Jackson Heights"
              {...props}
          />
        </TimelineDetailArea>
      </TimelineItem>

      <TimelineItem lineStyle="dotted"
          {...props}
      >
        <TimelineNodeArea>
          <Pill text="Any Kit"
              variant="success"
          />
        </TimelineNodeArea>
        <TimelineDetailArea>
          <TitleDetail detail="81 Gate St Brooklyn"
              title="Greenpoint"
              {...props}
          />
        </TimelineDetailArea>
      </TimelineItem>

      <TimelineItem lineStyle="solid"
          {...props}
      >
        <TimelineDateArea date={new Date(new Date().setDate(new Date().getDate() + 1))} />
        <TimelineNodeArea icon="map-marker-alt"
            iconColor="purple"
        />
        <TimelineDetailArea>
          <TitleDetail detail="72 E St Astoria"
              title="Society Hill"
              {...props}
          />
        </TimelineDetailArea>
      </TimelineItem>
    </Timeline>
  </div>
)

export default TimelineWithChildren

Version data entries

2 entries across 2 versions & 2 rubygems

Version Path
playbook_ui_docs-14.5.0.pre.alpha.play1586datearea4115 app/pb_kits/playbook/pb_timeline/docs/_timeline_with_children.jsx
playbook_ui-14.5.0.pre.alpha.play1586datearea4115 app/pb_kits/playbook/pb_timeline/docs/_timeline_with_children.jsx