@orz/ui
StartGuidelinesDemosStorybook
/
  1. Demos
  2. Binary inspector

File

Structure

A hex editor for one file: a sample, or one of your own, opened or dropped and read in the browser alone. A PNG's chunks or a ZIP's headers list beside the bytes and select them, an inspector reads the selection as numbers and text, and the edits download as a new file.

Guidelines shown here

  • Destructive actions

    Edit a few bytes: Undo takes each one back. Revert… drops them all, so it is the one step that asks, and its dialog points at Download as the way to keep a copy.

  • Forms

    Edit a byte, then pick another sample: the unsaved edits are guarded by the same dialog a form uses before you leave it.

  • Loading, empty & error

    Pick another sample: skeleton rows hold its place while it loads. Should the fetch fail, the error takes that place, with Retry.

  • Feedback

    Paste more bytes than fit, or text that is not hex: a toast says what was pasted and what was refused. Revert ends in one that names the file.

  • Overlays

    Below lg the inspector waits in a Sheet from the bottom bar. Revert… asks in a ConfirmDialog, and opening another file over edits asks in UnsavedChangesDialog.

  • Desktop & pointer

    Drop a file anywhere to open it: a shortcut for Open file…, which does the same without a drag. Undo and Redo name themselves in a tooltip.

  • Touch & mobile

    On a phone the structure is a Select above the bytes and the inspector a Sheet, while Revert… keeps its word because nothing undoes it.

Components

  • ui · ConfirmDialog
  • ui · LoadFailure
  • ui · DropdownMenu
  • ui · FileDrop
  • ui · GroupHeading
  • ui · InfoPopover
  • ui · NavList
  • ui · Pane
  • ui · SegmentedControl
  • ui · Select
  • ui · Sheet
  • ui · Skeleton
  • ui · Toaster
  • ui · Tree
  • ui · Toolbar
  • ui · UnsavedChangesDialog
  • ui-hex · HexEditor
  • ui-hex · HexInspector