CLI previewInstall commands shown on this site are not released yet.

DocsComponentsCommerce

OrderStatusTracker

React example follows below.
ts
import { OrderStatusTracker } from "@grassroot/ui-react";
<OrderStatusTracker steps={["Placed", "Packed", "Shipped", "Delivered"]} current={2} />
ts
<script setup lang="ts">
import { OrderStatusTracker } from "@grassroot/ui-vue";
</script>
<template>
<OrderStatusTracker
:steps="['Placed', 'Packed', 'Shipped', 'Delivered']"
:current="2"
/>
</template>
ts
import { Component } from "@angular/core";
import { GrassrootOrderStatusTracker } from "@grassroot/ui-angular";
@Component({
selector: "app-example",
standalone: true,
imports: [GrassrootOrderStatusTracker],
template: `
<grassroot-order-status-tracker
[steps]="['Placed', 'Packed', 'Shipped', 'Delivered']"
[current]="2"
/>
`,
})
export class ExampleComponent {
}
ts
<script lang="ts">
import { OrderStatusTracker } from "@grassroot/ui-svelte";
</script>
<OrderStatusTracker steps={["Placed", "Packed", "Shipped", "Delivered"]} current={2} />
ts
import { OrderStatusTracker } from "@grassroot/ui-solid";
export function Example() {
return (
<>
<OrderStatusTracker steps={["Placed", "Packed", "Shipped", "Delivered"]} current={2} />
</>
);
}

Installation

bash
pnpm dlx grassroot add ui/order-status-tracker
bash
npx grassroot@latest add ui/order-status-tracker
bash
yarn dlx grassroot add ui/order-status-tracker
bash
bunx grassroot add ui/order-status-tracker

API Reference

OrderStatusTrackerProps
PropTypeDefault
stepsrequiredstring[]
currentrequired0-based index of the current step.number
classNamestring | undefined