1 slot open this monthBy the makers of shadcnregistryWe built shadcnregistry. Now we build your product.Book a callCheck availability
1 slot open this monthAI features?We build AI features into your product.Book a callCheck availability
1 slot open this month🚨 Slop police🚨 Slop police: we clean up vibe-coded apps.Report itReport your app
shadcnregistry
shadcnregistry
RegistryHealthInspect
Terms of ServicePrivacy Policy
  1. Registries
  2. bollard
  3. Middle Truncate

Middle Truncate

ui

Text that truncates in the middle to the real rendered width so the distinguishing end (a file extension, the last characters of an ID) stays visible, while copy, title and screen readers always get the full value. Never splits emoji or accents.

pnpm dlx shadcn@latest add "https://bollard-ui.vercel.app/r/middle-truncate.json"
Premium blocks for shadcn/uiShadcnblocks.com Ā· AffiliateExplore
@ui/middle-truncate.tsx