woocommerce/plugins/woocommerce-admin/packages/components/src/stepper
Elizabeth Pizzuti 93cca16404 Style updates to tax task (https://github.com/woocommerce/woocommerce-admin/pull/5709)
* style changes to tax task

* Fix undefined variable use.

* Set plugin install dismissal actions as tertiary.

* change back to variable

* add margin to primary

* text-button-styles-homescreen

* Add specificity to the task caption selector.

We need to beat out the styles from Gutenberg.

Co-authored-by: Jeff Stieler <jeff.m.stieler@gmail.com>
2020-12-02 09:27:50 -05:00
..
stories Migrate the devdocs examples to Storybook CSF stories (https://github.com/woocommerce/woocommerce-admin/pull/5271) 2020-10-15 14:55:55 +13:00
README.md Fetch component usage documentation from local README.md. 2019-09-06 11:52:18 -07:00
check-icon.js Align WooCommerce javascript code standards/linting/styles with WordPress core. (https://github.com/woocommerce/woocommerce-admin/pull/3674) 2020-02-14 15:23:21 +13:00
index.js Align WooCommerce javascript code standards/linting/styles with WordPress core. (https://github.com/woocommerce/woocommerce-admin/pull/3674) 2020-02-14 15:23:21 +13:00
style.scss Style updates to tax task (https://github.com/woocommerce/woocommerce-admin/pull/5709) 2020-12-02 09:27:50 -05:00

README.md

Stepper

A stepper component to indicate progress in a set number of steps.

Usage

const steps = [
	{
		key: 'first',
		label: 'First',
		description: 'Step item description',
		content: <div>First step content.</div>,
	},
	{
		key: 'second',
		label: 'Second',
		description: 'Step item description',
		content: <div>Second step content.</div>,
	},
];

<Stepper
	steps={ steps }
	currentStep="first"
	isPending={ true }
/>

Props

Name Type Default Description
className String null Additional class name to style the component
currentStep String null (required) The current step's key
steps Array null (required) An array of steps used
isVertical Boolean false If the stepper is vertical instead of horizontal
isPending Boolean false Optionally mark the current step as pending to show a spinner

steps structure

Array of step objects with properties:

  • key: String - Key used to identify step.
  • label: String - Label displayed in stepper.
  • description: String - Description displayed beneath the label.
  • isComplete: Boolean - Optionally mark a step complete regardless of step index.
  • content: ReactNode - Content displayed when the step is active.