Search the documentation

Type to search page titles, component names and descriptions.

    Data Display

    Pipeline

    The stages of a process and the work in each.

    import { Pipeline } from 'faifo-design'

    Pipeline reads a process left to right: its stages and how many items sit in each. A later stage may hold more than the one before it.

    #When to use

    • Use it to show where work is waiting across a process.
    • It is not a Progress (how far along one task is) nor a StagePath (which stage one record is in).

    #Examples

    Each example is a specimen of the package catalogue, rendered on the server exactly as shown in its code.

    #Pipeline

    Stages of a process and the work sitting in each. A later stage may hold more than the one before it.

    Show codeHide code
    import { Pipeline } from 'faifo-design'
    
    export const Example = () => (
      <Pipeline
        label="Order pipeline"
        steps={[
          { id: 'draft', label: 'Draft', value: 24, href: '#pipeline' },
          { id: 'sent', label: 'Sent', value: 9, href: '#pipeline', tone: 'info' },
          { id: 'confirmed', label: 'Confirmed', value: 18, href: '#pipeline', tone: 'positive' },
          { id: 'to-invoice', label: 'To invoice', value: 6, href: '#pipeline', tone: 'warning' },
        ]}
      />
    )

    #API

    Generated from the package source. A property without a description has none in the source yet.

    #PipelineComponent

    A process read left to right: the stages of a thing, and how many are sitting in each one. Not a Progress, which answers "how far along is this one record", nor a StagePath, which shows which stage one record is in. This answers "where is the work piling up", so every stage carries its own count and none of them is a percentage of the others — a stage can hold more than the one before it, and a bar that normalised them would say the opposite. An ordered list, because the order is the meaning. The connecting rail and the arrows between stages are drawn by the stylesheet from pipeline-step-node and pipeline-arrow; both are decoration for an order the markup already states, which is why the arrow carries no text to announce.

    PropertyDescriptionTypeDefault
    labelrequired–string–
    stepsrequired–readonly PipelineStep[]–

    #Types

    #PipelineStep

    PropertyDescriptionTypeDefault
    idrequired–string–
    labelrequired–string–
    valuerequired–string | number–
    href–string | null–
    tone–Tone–

    #Hooks

    The data-ui values these components render. Select them in tests and behaviour; their look belongs to the design system. See Contract.

    • pipeline
    • pipeline-step
    • pipeline-arrow
    • pipeline-step-label
    • pipeline-step-value
    • pipeline-step-node