UNPKG

@stihl-design-system/components

Version:

Welcome to the STIHL Design System react component library.

25 lines (24 loc) 1.73 kB
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, 'hideLabel' | 'iconName' | 'iconSource' | 'isFlush' | 'size' | 'stretched' | 'theme' | 'variant'>; /** * 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 props occur. * * Intended for development use only; should not be used in production environments. * * @param validationProps - An object containing the props to validate * from the `DSLinkButton` component. These are validated to ensure * they are used in supported combinations. */ export declare const validateLinkButtonProps: ({ hideLabel, iconName, iconSource, isFlush, size, stretched, theme, variant, }: ValidationProps) => void; export {};