webiny-admin-router-catalog

$npx mdskill add webiny/webiny-js/webiny-admin-router-catalog

Import router abstractions to build admin navigation.

  • Enables agents to create links and redirects in admin interfaces.
  • Depends on webiny-api context and React component libraries.
  • Selects components based on required navigation functionality.
  • Delivers results through rendered UI components and route logic.
SKILL.md
.github/skills/webiny-admin-router-catalogView on GitHub ↗
---
name: webiny-admin-router-catalog
context: webiny-api
description: >
  admin/router — 6 abstractions.
---

# admin/router

## How to Use

1. Find the abstraction you need below
2. Read the source file to get the exact interface and types
3. Import: `import { Name } from "<importPath>";`

## Abstractions

---

**Name:** `LinkComponent`
**Import:** `import { LinkComponent } from "webiny/admin/router"`
**Source:** `@webiny/app/presentation/router/components/SimpleLink.tsx`

---

**Name:** `RedirectComponent`
**Import:** `import { RedirectComponent } from "webiny/admin/router"`
**Source:** `@webiny/app/presentation/router/components/Redirect.tsx`

---

**Name:** `Route`
**Import:** `import { Route } from "webiny/admin/router"`
**Source:** `@webiny/app/features/router/Route.ts`

---

**Name:** `RouteLinkComponent`
**Import:** `import { RouteLinkComponent } from "webiny/admin/router"`
**Source:** `@webiny/app/presentation/router/components/RouteLink.tsx`

---

**Name:** `useRoute`
**Import:** `import { useRoute } from "webiny/admin/router"`
**Source:** `@webiny/app/presentation/router/index.ts`

---

**Name:** `useRouter`
**Import:** `import { useRouter } from "webiny/admin/router"`
**Source:** `@webiny/app/presentation/router/index.ts`

---
More from webiny/webiny-js