mirror of
https://github.com/hanzoai/next.js.git
synced 2026-09-24 17:00:51 +00:00
## App Router Moves the `with-mux-video` example to idiomatic App Router, with goodies like * server component data fetching * server actions * layouts * route groups * loading UI ## Mux Dependencies * @mux/mux-node 7 -> 8 * @mux/mux-player-react 1 -> 2 * @mux/upchunk + custom UI -> @mux/mux-uploader ## In other news... * Fleshed out the README * Updated imagery * Moved from styled jsx to tailwind and lightly updated styles ## Contributor Checklist * [x] The "examples guidelines" are followed from our contributing doc https://github.com/vercel/next.js/blob/canary/contributing/examples/adding-examples.md * [x] Make sure the linting passes by running `pnpm build && pnpm lint`. See https://github.com/vercel/next.js/blob/canary/contributing/repository/linting.md --------- Co-authored-by: Sam Ko <[email protected]>
15 lines
412 B
TypeScript
15 lines
412 B
TypeScript
import LibLink from "next/link";
|
|
|
|
/**
|
|
*
|
|
* @param className this component does not merge className with the default classes -- it only appends -- so beware of duplicates
|
|
*/
|
|
const Link = ({ className, ...rest }: React.ComponentProps<typeof LibLink>) => (
|
|
<LibLink
|
|
className={`underline hover:no-underline focus-visible:no-underline text-red-600 ${className}`}
|
|
{...rest}
|
|
/>
|
|
);
|
|
|
|
export default Link;
|