@mskcc/carbon-react
Version:
Carbon react components for the MSKCC DSM
27 lines (26 loc) • 998 B
TypeScript
import { ComponentProps } from 'react';
import PropTypes from 'prop-types';
export type SkipToContentProps = Omit<ComponentProps<'a'>, 'children'> & {
children?: string | undefined;
};
export declare function SkipToContent({ children, className: customClassName, href, tabIndex, ...rest }: SkipToContentProps): JSX.Element;
export declare namespace SkipToContent {
var displayName: string;
var propTypes: {
/**
* A ReactNode to display in the SkipToContent `a` tag.
* `'Skip to main content'` by default.
*/
children: PropTypes.Requireable<string>;
className: PropTypes.Requireable<string>;
/**
* Provide the `href` to the id of the element on your package that is the
* main content. `#main-content` by default.
*/
href: PropTypes.Requireable<string>;
/**
* Optionally override the default tabindex of 0
*/
tabIndex: PropTypes.Requireable<string>;
};
}