Skip to content

Commit

Permalink
clean
Browse files Browse the repository at this point in the history
  • Loading branch information
Fercas123 committed Dec 13, 2024
1 parent 777f3e2 commit edb850a
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions packages/lab/src/skip-link/SkipLink.tsx
Original file line number Diff line number Diff line change
@@ -1,13 +1,18 @@
import { type LinkProps, makePrefixer } from "@salt-ds/core";
import { makePrefixer } from "@salt-ds/core";
import { useComponentCssInjection } from "@salt-ds/styles";
import { useWindow } from "@salt-ds/window";
import { clsx } from "clsx";
import { forwardRef, useEffect, useRef } from "react";
import {
type ComponentPropsWithoutRef,
forwardRef,
useEffect,
useRef,
} from "react";
import { useManageFocusOnTarget } from "./internal/useManageFocusOnTarget";

import skipLinkCss from "./SkipLink.css";

interface SkipLinkProps extends LinkProps {
interface SkipLinkProps extends ComponentPropsWithoutRef<"a"> {
/**
* The ID of the target element to apply focus when the link is clicked.
* If the element with this ID is not found, the SkipLink will not be rendered.
Expand Down

0 comments on commit edb850a

Please sign in to comment.