Skip to content
ContractSpec
Start here

Package manual · platform

·Interfaces, presentations and design

lib.cockpit-kit-native

Native lane for cockpit primitives — React Native implementations with cockpit-kit type contracts

platformlibraryv2.0.4experimentalservernode
@lssm-tech/lib.cockpit-kit-native
bun add @lssm-tech/lib.cockpit-kit-native
Package source ↗Manifest ↗

Manifest declarations describe the current workspace; they do not verify registry publication or runtime execution.

Package guide

Native lane (React Native / Expo) for cockpit primitives. Implements the CockpitFrame, NavRail, GraphCanvas, and MetricPanel contracts from @lssm-tech/lib.cockpit-kit using React Native primitives.

Overview

text
cockpit-kit-native  →  cockpit-kit  (type contracts + variant unions)

Variant unions (Density, Expansion) are owned by cockpit-kit and re-exported here for convenience.

Usage

tsx
import { CockpitFrame } from "@lssm-tech/lib.cockpit-kit-native/ui/CockpitFrame";

function MyCockpit() {
  const [active, setActive] = React.useState("dashboard");
  return (
    <CockpitFrame density="comfortable" expansion="expanded">
      <CockpitFrame.Nav>
        {/* NavRailNative goes here */}
      </CockpitFrame.Nav>
      {active === "dashboard" && (
        <CockpitFrame.Screen for="dashboard">
          <DashboardScreen />
        </CockpitFrame.Screen>
      )}
      <CockpitFrame.Footer>
        <StatusBar />
      </CockpitFrame.Footer>
    </CockpitFrame>
  );
}

Subpath exports

ImportContents
@lssm-tech/lib.cockpit-kit-nativeType contracts + variant unions
@lssm-tech/lib.cockpit-kit-native/variantsDensity + Expansion re-exports
@lssm-tech/lib.cockpit-kit-native/typesProp interface re-exports
@lssm-tech/lib.cockpit-kit-native/ui/CockpitFrameCompound layout container

Rules

  • Do NOT import from @lssm-tech/lib.personalized-presentation (cycle prevention)
  • Do NOT use web-only APIs (div, className, cva, clsx)
  • Use StyleSheet.create for all styles
  • Variant types MUST come from @lssm-tech/lib.cockpit-kit/variants

Relationships

THIS PACKAGElib.cockpit-kit-native16 import paths

Arrows point from a package to its direct dependency. Counts are derived from captured workspace manifests.

3 declarations

Declared capabilities

Lib Cockpit Kit Native

Native lane for cockpit primitives — React Native implementations with cockpit-kit type contracts

Scripts

  • publish:pkgbun publish --tolerate-republish --ignore-scripts --verbose
  • publish:pkg:canarybun publish:pkg --tag canary
  • buildcontractspec-bun-build build
  • build:bundlecontractspec-bun-build transpile
  • build:typescontractspec-bun-build types
  • devcontractspec-bun-build dev
  • cleanrm -rf dist
  • lintbun run lint:fix
  • lint:fixnode ../../../../scripts/biome.cjs check --write --unsafe --only=nursery/useSortedClasses . && node ../../../../scripts/biome.cjs check --write .
  • lint:checknode ../../../../scripts/biome.cjs check .
  • testbun test --pass-with-no-tests
  • prebuildcontractspec-bun-build prebuild
  • typechecktsgo --noEmit