REACT · ByteMap
import { ByteMap } from "@chrishayuk/hause/components/forms/ByteMap";
export type ByteField = {
name: string;
type: string;
bytes: number;
/** A fixed value, when the format pins one (a magic, a version). */
value?: string;
meaning: string;
};
export type ByteMapProps = {
kicker: string;
title: string;
fields: ByteField[];
/** e.g. "24 bytes · little-endian · regions 64-byte aligned" */
totalLabel?: string;
caption?: string;
};
export function ByteMap({ kicker, title, fields, totalLabel, caption }: ByteMapProps)The import and the complete props contract. For installation and composition, follow the Build guide.