Barbados (BB)
The @road-signs/bb package contains Barbados road signs (British-derived).
Signs are sourced from Wikimedia Commons and are in the public domain.
Installation
Section titled “Installation”npm install @road-signs/bbSign categories
Section titled “Sign categories”| Category | Series | Description |
|---|---|---|
warning |
Warning | Hazard and warning signs |
prohibitory |
Prohibitory | Prohibition and restriction signs |
mandatory |
Mandatory | Mandatory instruction signs |
information |
Information / Service | Information and service signs |
import { signs, getSign, getSignByCode, getSignsByCategory } from '@road-signs/bb';
// Placeholders — replace with real codes once @road-signs/bb ships a registry.
// All signssigns.length;
// By slug IDconst sign = getSign("example-sign");
// By sign codeconst s = getSignByCode("EXAMPLE-CODE");
// All warning signsconst filtered = getSignsByCategory("warning");import { getSignsByCategory } from '@road-signs/bb';import { RoadSign } from '@road-signs/react';
const warningSigns = getSignsByCategory("warning");
export default function BBGrid() { return ( <div style={{ display: 'flex', gap: 8, flexWrap: 'wrap' }}> {warningSigns.map((sign) => ( <RoadSign key={sign.id} sign={sign} size={64} /> ))} </div> );}<script setup>import { getSignsByCategory } from '@road-signs/bb';import { RoadSign } from '@road-signs/vue';
const warningSigns = getSignsByCategory("warning");</script>
<template> <div style="display:flex;gap:8px;flex-wrap:wrap"> <RoadSign v-for="sign in warningSigns" :key="sign.id" :sign="sign" :size="64" /> </div></template>Coverage
Section titled “Coverage”| Metric | Value |
|---|---|
| Signs scraped | 0 |
| Signs with SVG | 0 |
| Missing SVG | 0 |
| Overall | — |
| Category | Scraped | With SVG | Missing | % |
|---|---|---|---|---|
warning |
0 | 0 | 0 | — |
priority |
0 | 0 | 0 | — |
prohibitory |
0 | 0 | 0 | — |
mandatory |
0 | 0 | 0 | — |
information |
0 | 0 | 0 | — |
Standard: British-derived (Road Traffic Act)
SVG sources:
Coverage data is also published in the @road-signs/docs package.
TypeScript types
Section titled “TypeScript types”import type { BBSign, BBCategory } from '@road-signs/bb';