Standard Toolkit
Packages@accelint/ntds

Icon Components

React SVG components for NTDS tactical symbols with customizable fill colors

React SVG icon components representing NTDS (Naval Tactical Data System) tactical symbols for military entities. Each component renders a 24×24 SVG with customizable fill color and accessibility support.

Usage

import { SvgAirFriend } from '@accelint/ntds/core/air-friend';
import { NTDS_COLOR_FRIEND } from '@accelint/ntds/constants';

function TacticalDisplay() {
  return (
    <SvgAirFriend 
      fill={NTDS_COLOR_FRIEND}
      width={32}
      height={32}
      title="Friendly Aircraft"
    />
  );
}

Reference

All NTDS SVG components share a common interface:

interface Props {
  title?: string;
  titleId?: string;
}

type SvgComponent = (props: SVGProps<SVGSVGElement> & Props) => JSX.Element;

Props

PropTypeDefaultRequired
fillstring#FF69B4No
widthnumber | string24No
heightnumber | string24No
titlestring-No
titleIdstring-No
classNamestring-No
styleCSSProperties-No

fill

Color value for the SVG path fills. Defaults to hot pink (#FF69B4) as a visual indicator that fill should be explicitly set.

Use with NTDS color constants for proper affiliation colors:

  • NTDS_COLOR_FRIEND - Blue for friendly entities
  • NTDS_COLOR_HOSTILE - Red for hostile entities
  • NTDS_COLOR_UNKNOWN - Yellow for unknown entities
  • And other NTDS standard colors

title

Accessible title for screen readers. When provided, the SVG element includes an aria-labelledby attribute referencing the title.

Good to know: Always provide a title prop when the icon conveys important information, especially in interactive contexts.

titleId

Custom ID for the <title> element. Defaults to automatic ID generation if not provided. Useful for ensuring unique IDs when multiple instances exist on the page.

Inherited Props

All components accept standard SVGSVGElement props including:

  • className - CSS class name
  • style - Inline styles
  • onClick - Click handler
  • onMouseEnter / onMouseLeave - Mouse events
  • aria-* - Additional ARIA attributes

Available Components

Air Entities

ComponentImport PathDescription
SvgAirFriend@accelint/ntds/core/air-friendFriendly aircraft
SvgAirHostile@accelint/ntds/core/air-hostileHostile aircraft
SvgAirUnknown@accelint/ntds/core/air-unknownUnknown aircraft
SvgAirBaseFriend@accelint/ntds/core/air-base-friendFriendly air base
SvgAirBaseHostile@accelint/ntds/core/air-base-hostileHostile air base
SvgAirBaseUnknown@accelint/ntds/core/air-base-unknownUnknown air base
SvgAirGroupFriend@accelint/ntds/core/air-group-friendFriendly air group
SvgAirGroupHostile@accelint/ntds/core/air-group-hostileHostile air group
SvgAirGroupUnknown@accelint/ntds/core/air-group-unknownUnknown air group
SvgHelicopterFriend@accelint/ntds/core/helicopter-friendFriendly helicopter
SvgHelicopterHostile@accelint/ntds/core/helicopter-hostileHostile helicopter
SvgHelicopterUnknown@accelint/ntds/core/helicopter-unknownUnknown helicopter

Surface Entities

ComponentImport PathDescription
SvgSurfaceFriend@accelint/ntds/core/surface-friendFriendly surface unit
SvgSurfaceHostile@accelint/ntds/core/surface-hostileHostile surface unit
SvgSurfaceUnknown@accelint/ntds/core/surface-unknownUnknown surface unit
SvgSurfaceGroupFriend@accelint/ntds/core/surface-group-friendFriendly surface group
SvgSurfaceGroupHostile@accelint/ntds/core/surface-group-hostileHostile surface group
SvgSurfaceGroupUnknown@accelint/ntds/core/surface-group-unknownUnknown surface group
SvgCarrierFriend@accelint/ntds/core/carrier-friendFriendly carrier
SvgCarrierHostile@accelint/ntds/core/carrier-hostileHostile carrier
SvgCarrierUnknown@accelint/ntds/core/carrier-unknownUnknown carrier

Subsurface Entities

ComponentImport PathDescription
SvgSubSurfaceFriend@accelint/ntds/core/sub-surface-friendFriendly submarine
SvgSubSurfaceHostile@accelint/ntds/core/sub-surface-hostileHostile submarine
SvgSubSurfaceUnknown@accelint/ntds/core/sub-surface-unknownUnknown submarine
SvgSubGroupFriend@accelint/ntds/core/sub-group-friendFriendly submarine group
SvgSubGroupHostile@accelint/ntds/core/sub-group-hostileHostile submarine group
SvgSubGroupUnknown@accelint/ntds/core/sub-group-unknownUnknown submarine group

Land Entities

ComponentImport PathDescription
SvgLandFriend@accelint/ntds/core/land-friendFriendly land unit
SvgLandHostile@accelint/ntds/core/land-hostileHostile land unit
SvgLandUnknown@accelint/ntds/core/land-unknownUnknown land unit
SvgBaseFriend@accelint/ntds/core/base-friendFriendly base
SvgBaseHostile@accelint/ntds/core/base-hostileHostile base
SvgBaseUnknown@accelint/ntds/core/base-unknownUnknown base

Weapons & Ordnance

ComponentImport PathDescription
SvgMissileFriend@accelint/ntds/core/missile-friendFriendly missile
SvgMissileHostile@accelint/ntds/core/missile-hostileHostile missile
SvgMissileUnknown@accelint/ntds/core/missile-unknownUnknown missile
SvgTorpedoFriend@accelint/ntds/core/torpedo-friendFriendly torpedo
SvgTorpedoHostile@accelint/ntds/core/torpedo-hostileHostile torpedo
SvgTorpedoUnknown@accelint/ntds/core/torpedo-unknownUnknown torpedo
SvgTarget@accelint/ntds/core/targetTarget designator
SvgSam@accelint/ntds/core/samSurface-to-air missile site
SvgMineField@accelint/ntds/core/mine-fieldMine field

Infrastructure & Facilities

ComponentImport PathDescription
SvgPort@accelint/ntds/core/portPort facility
SvgRunway@accelint/ntds/core/runwayRunway
SvgStructure@accelint/ntds/core/structureGeneric structure
SvgPol@accelint/ntds/core/polPetroleum, oils, and lubricants facility
SvgCommunications@accelint/ntds/core/communicationsCommunications facility

Examples

Example: Entity with standard color

import { SvgAirFriend } from '@accelint/ntds/core/air-friend';
import { NTDS_COLOR_FRIEND } from '@accelint/ntds/constants';

function FriendlyAircraft() {
  return (
    <SvgAirFriend 
      fill={NTDS_COLOR_FRIEND}
      title="Friendly F-16"
    />
  );
}

Example: Dynamic affiliation rendering

import { NTDS_COLOR_FRIEND, NTDS_COLOR_HOSTILE } from '@accelint/ntds/constants';
import { SvgAirFriend } from '@accelint/ntds/core/air-friend';
import { SvgAirHostile } from '@accelint/ntds/core/air-hostile';

type Entity = {
  id: string;
  affiliation: 'friend' | 'hostile';
};

function EntityIcon({ entity }: { entity: Entity }) {
  if (entity.affiliation === 'hostile') {
    return (
      <SvgAirHostile 
        fill={NTDS_COLOR_HOSTILE}
        title={`Hostile aircraft ${entity.id}`}
      />
    );
  }
  
  return (
    <SvgAirFriend 
      fill={NTDS_COLOR_FRIEND}
      title={`Friendly aircraft ${entity.id}`}
    />
  );
}

Example: Custom sizing

import { SvgSurfaceFriend } from '@accelint/ntds/core/surface-friend';
import { NTDS_COLOR_FRIEND } from '@accelint/ntds/constants';

function LargeShipIcon() {
  return (
    <SvgSurfaceFriend 
      fill={NTDS_COLOR_FRIEND}
      width={48}
      height={48}
      title="USS Enterprise"
    />
  );
}

Example: Interactive icon with events

import { SvgHelicopterFriend } from '@accelint/ntds/core/helicopter-friend';
import { NTDS_COLOR_FRIEND } from '@accelint/ntds/constants';

function InteractiveHelicopter({ onSelect }) {
  const [isHovered, setIsHovered] = useState(false);

  return (
    <SvgHelicopterFriend
      fill={isHovered ? '#00A0FF' : NTDS_COLOR_FRIEND}
      width={32}
      height={32}
      title="Helicopter Unit 12"
      onClick={onSelect}
      onMouseEnter={() => setIsHovered(true)}
      onMouseLeave={() => setIsHovered(false)}
      style={{ cursor: 'pointer', transition: 'fill 0.2s' }}
    />
  );
}

Example: Multiple entities on tactical map

import { SvgAirFriend } from '@accelint/ntds/core/air-friend';
import { SvgSurfaceHostile } from '@accelint/ntds/core/surface-hostile';
import { SvgSubSurfaceUnknown } from '@accelint/ntds/core/sub-surface-unknown';
import {
  NTDS_COLOR_FRIEND,
  NTDS_COLOR_HOSTILE,
  NTDS_COLOR_UNKNOWN,
} from '@accelint/ntds/constants';

function TacticalMap({ entities }) {
  return (
    <svg width={800} height={600}>
      {entities.map((entity) => {
        const Icon = getIconComponent(entity.type, entity.affiliation);
        const color = getAffiliationColor(entity.affiliation);
        
        return (
          <g key={entity.id} transform={`translate(${entity.x}, ${entity.y})`}>
            <Icon 
              fill={color}
              title={entity.callsign}
            />
          </g>
        );
      })}
    </svg>
  );
}

Example: All affiliation states

import { SvgMissileFriend } from '@accelint/ntds/core/missile-friend';
import { SvgMissileHostile } from '@accelint/ntds/core/missile-hostile';
import { SvgMissileUnknown } from '@accelint/ntds/core/missile-unknown';
import {
  NTDS_COLOR_FRIEND,
  NTDS_COLOR_HOSTILE,
  NTDS_COLOR_UNKNOWN,
} from '@accelint/ntds/constants';

function MissileLegend() {
  return (
    <div className="legend">
      <div>
        <SvgMissileFriend fill={NTDS_COLOR_FRIEND} />
        <span>Friendly</span>
      </div>
      <div>
        <SvgMissileHostile fill={NTDS_COLOR_HOSTILE} />
        <span>Hostile</span>
      </div>
      <div>
        <SvgMissileUnknown fill={NTDS_COLOR_UNKNOWN} />
        <span>Unknown</span>
      </div>
    </div>
  );
}

On this page