furl
Getting startedDesignComponents
Design
Design GuidelinesTypography SystemLayout SystemColor palettesCustomization
Components
ComponentsAccordionAlertAnchorAudioAvatarBadgeBreadcrumbsButtonButtonGroupCalendarCardCollapseContextButtonDividerDropdownFooterFormGraphGridHyperlinkIconIframeImageInputItemLayoutListLoaderMediaObjectMenuModalNotificationPaginationPopoverProgressSearchStepsSwitchTableTabsTooltipTypographyVideo

Steps

Steps visualize the sequence of sub-tasks of a task.

Examples

PricingChoose the plan that's best for you.AccountAdd your personal and contact information.BillingAdd a payment method to your account.CheckoutReview your choices and
pay for your plan.
Pricing PlanChoose the plan that's best for you.Personal InformtionAdd your personal and contact information.Billing InformationAdd a payment method to your account.CheckoutReview your choices and pay for your plan.
import React from 'react';
import ReactDOM from 'react-dom';
import { Steps, Step, Text } from 'furl-components';

ReactDOM.render(
  <div>
    <Steps alignment='vertical'>
      <Step>Pricing Plan<Text textStyle='small'>Choose the plan that's best for you.</Text></Step>
      <Step>Personal Information<Text textStyle='small'>Add your personal and contact information.</Text></Step>
      <Step selected>Billing Information<Text textStyle='small'>Add a payment method to your account.</Text></Step>
      <Step>Checkout<Text textStyle='small'>Review your choices and pay for your plan.</Text></Step>
    </Steps>
    <Steps data={[
      'Pricing Plan',
      (<>Personal Information<Text textStyle='small'>Add your personal and contact information.</Text></>),
      {
        selected: true,
        content: 'Billing Information'
      },
      (<>Checkout<Text textStyle='small'>Review your choices and pay for your plan.</Text></>)
    ]} />
  </div>, 
  document.getElementById('root')
);

API

Steps props
Property Description Type Default
alignment steps separator style string 'horizontal'
data steps data source array(string/object)

Notes

  • You can populate breadcrumbs either via passing children to it or via the use of the data prop. If data is provided, it will take precedence over passed children, therefore rendering only the content provided in data.
  • Steps only accepts children of the Step component type.
  • data only accepts an array of values, each of which can either be a string or an object. Objects in the data array must contain a content, optionally a selected value and any other props that you want to pass.
  • alignment can either be 'horizontal' or 'vertical'.

furl was designed and developed by Angelos Chalaris © 2019
Documentation generated using Gatsby, hosting by Netlify