Command Palette

Search for a command to run...

GitHub
ComponentsSalary Grade Explorer

Salary Grade Explorer

A comprehensive, backend-driven administrative utility for LGU employee portals and HRIS managers. Enables employees to explore standardization grade steps, simulate voluntary deductions/additions, and visualize a printable itemized salary statement.

React
Backend-Driven
LGU HRIS

Interactive Demo

Toggle different grades, steps, and optional deductions to observe a simulated backend API round-trip calculation with realistic loading states.

LGU Salary Standard Scale

Browse active Salary Standardization Law grade steps and basic wages.

GradeBase (Step 1)Max (Step 8)Step Selector
SG 0113,00014,428
SG 0213,97515,510
SG 0315,02316,673
SG 0416,15017,924
SG 0517,36119,268
SG 0618,66320,713
SG 0720,06322,267
SG 0821,56823,937
SG 0923,18525,732
SG 1024,92427,662
SG 1126,79329,736
SG 1228,80331,967
SG 1330,96334,364
SG 1433,28536,941
SG 1535,78239,712
SG 1638,46542,690
SG 1741,35045,892
SG 1844,45249,335
SG 1947,78553,034
SG 2051,36957,012
SG 2155,22261,288
SG 2259,36465,885
SG 2363,81670,826
SG 2468,60276,138

Interactive Additions

+₱3,500.00
+₱2,000.00
+₱1,500.00

Voluntary Deductions

-₱2,500.00
-₱1,000.00
-₱200.00
LGU HRIS System

Payroll Itemized Statement

Nehry DedoroID: 2026-8802
Lead Systems DeveloperMunicipal Information and Communications Technology Office (MICTO)

Gross Earnings

Basic Standard Wage26,793.00
PERA (Personnel Economic Relief Allowance)2,000.00

Government & Simulation Deductions

GSIS Life & Retirement Insurance (9%)-₱2,411.00
PhilHealth Health Insurance-₱250.00
Pag-IBIG HDMF Contribution-₱100.00
Tax
BIR Withholding Tax
-₱480.00
Gross Earnings28,793.00
Total Deductions3,241.00
Net Take-Home Wage
25,552.00
89%
Net ratio of overall gross income.

This payroll preview maps SG 11 Step 1 dynamically. Always cross-reference with official LGU accounting audits.

Installation

Install the component using the shadcn CLI.

pnpm dlx shadcn@latest add https://micto-ui-kit.misangono.net/r/micto/salary-grade-explorer.json

Backend-Driven Integration

How to connect the component to React Query and a standard backend calculation API.

import { SalaryGradeExplorer } from "@/components/micto/salary-grade-explorer";
import { useQuery } from "@tanstack/react-query";
import { useState } from "react";

export default function EmployeeSalaryPortal() {
  const [grade, setGrade] = useState(11);
  const [step, setStep] = useState(1);
  const [additions, setAdditions] = useState<string[]>([]);
  const [deductions, setDeductions] = useState<string[]>([]);

  // 100% backend-driven audit pipeline!
  const { data: payroll, isLoading } = useQuery({
    queryKey: ["payroll", grade, step, additions, deductions],
    queryFn: async () => {
      const res = await fetch("/api/payroll/calculate", {
        method: "POST",
        body: JSON.stringify({ grade, step, additions, deductions }),
      });
      return res.json();
    },
  });

  return (
    <SalaryGradeExplorer
      employeeName="Nehry Dedoro"
      position="Lead Systems Developer"
      activeGrade={grade}
      activeStep={step}
      payrollResult={payroll}
      isLoading={isLoading}
      onSelectionChange={(g, s, add, ded) => {
        setGrade(g);
        setStep(s);
        setAdditions(add);
        setDeductions(ded);
      }}
    />
  );
}

Properties Reference

Configure the explorer component with the following properties.

PropTypeDefaultDescription
employeeNamestring"Nehry Dedoro"The name of the employee rendered on the payslip.
positionstring"Lead Systems Developer"The official employee designation/position.
payrollResultobjectundefinedThe calculated payroll breakdown (gross, statutory deductions, net) returned by the backend.
onSelectionChangefunctionundefinedCallback triggered when a user changes grade, step, or checks custom simulated loans/allowances.
isLoadingbooleanfalseActivates a premium loading overlay during asynchronous API calls/calculations.