sigilUI

Before After Diagram

Show the difference between two versions side by side.

@sigil-ui/componentsReact

Preview

Live preview Interactive

Import

import { BeforeAfterDiagram } from "@sigil-ui/components";

Usage

<BeforeAfterDiagram
    before={<p className="text-sm">Manual deploys, 2-hour rollbacks</p>}
    after={<p className="text-sm">CI/CD pipeline, 30-second rollbacks</p>}
  />

Props

PropTypeDefaultDescription
beforeTitlestring—Before Title configuration.
afterTitlestring—After Title configuration.
before (required)ReactNode—Before configuration.
after (required)ReactNode—After configuration.

Token integration

CSS VariablePurpose
--s-radius-cardRadius card
--s-errorError
--s-error-mutedError muted
--s-surfaceSurface
--s-successSuccess
--s-success-mutedSuccess muted