@contractspec/lib.ui-link
v3.7.24
Published
Deep linking utilities for navigation
Downloads
1,725
Maintainers
Readme
@contractspec/lib.ui-link
@contractspec/lib.ui-link provides a tiny link component for shared UI surfaces that should not be coupled to framework-specific routers.
Website: https://contractspec.io
Installation
bun add @contractspec/lib.ui-link
or
npm install @contractspec/lib.ui-link
What belongs here
This package is intentionally narrow:
- Generic anchor-style link behavior.
- Minimal styling composition via
@contractspec/lib.ui-kit-core.
Use this package when you want shared link behavior without Expo-router or Next-specific coupling.
API map
- root default export
./ui/linkLinkcomponent with anchor-style props and requiredhref
Operational semantics and gotchas
- The component renders a plain anchor.
- It depends on
@contractspec/lib.ui-kit-coreforcn(). - Unlike
ui-kitandui-kit-web, this package should stay router-agnostic. - The root export is just the default export from
./ui/link.
When not to use this package
- Do not use it for Expo-router navigation.
- Do not use it for Next.js
Linkbehavior. - Do not use it for complex navigation abstractions.
Related packages
@contractspec/lib.ui-kit-core@contractspec/lib.ui-kit@contractspec/lib.ui-kit-web
Local commands
bun run lint:checkbun run typecheck
