@stihl-design-system/components
Version:
Welcome to the STIHL Design System react component library.
26 lines (25 loc) • 1.71 kB
TypeScript
import { LinkButtonProps } from './LinkButton';
export declare const LINK_BUTTON_SIZE: readonly ["medium", "small"];
export type LinkButtonSize = (typeof LINK_BUTTON_SIZE)[number];
export declare const LINK_BUTTON_VARIANT: readonly ["filled", "highlight", "outline", "ghost", "navigation"];
export type LinkButtonVariant = (typeof LINK_BUTTON_VARIANT)[number];
export type LinkButtonIconPosition = 'left' | 'right';
export type LinkButtonRel = 'alternate' | 'author' | 'bookmark' | 'external' | 'help' | 'license' | 'next' | 'nofollow' | 'noreferrer' | 'noopener' | 'prev' | 'search' | 'tag';
export type LinkButtonReferrerPolicy = 'no-referrer' | 'no-referrer-when-downgrade' | 'origin' | 'origin-when-cross-origin' | 'same-origin' | 'strict-origin-when-cross-origin' | 'unsafe-url';
export type LinkButtonAriaAttribute = 'aria-label' | 'aria-current' | 'aria-labelledby';
type ValidationProps = Pick<LinkButtonProps, 'variant' | 'size' | 'theme'>;
/**
* Performs runtime validation on a subset of `DSLinkButton` props to detect
* misconfigurations during development.
*
* This function provides warnings or throws errors when invalid combinations
* of `variant`, `size`, or `theme` are detected—particularly for the `navigation` variant.
*
* Intended for development use only; should not be used in production environments.
*
* @param validationProps - An object containing the `variant`, `size`, and `theme` props
* from the `DSLinkButton` component. These are validated to ensure
* they are used in supported combinations.
*/
export declare const validateLinkButtonProps: ({ variant, size, theme, }: ValidationProps) => void;
export {};