Content
Middle Truncate
Shortens a long identifier in the middle so its start and end stay readable.
Group: Content. Exports: MiddleTruncate. Halaska addition with no shadcn/ui equivalent.
Usage
import { MiddleTruncate } from "./halaska-kit";
MiddleTruncate props
textstring:tailnumber(default 6):monoboolean(default true):styleCSSProperties: Inline style merged onto the root element.
Accessibility
- The full text stays in the DOM, so screen readers and copy both get the whole value.
- The text is split across two spans, which some screen readers read with a short pause.
- There is no tooltip with the full value.
Halaska UI · Components · Patterns · Screens · Install