@stihl-design-system/components
Version:
Welcome to the STIHL Design System react component library.
20 lines (19 loc) • 866 B
TypeScript
import { default as React } from 'react';
export declare const HEADER_VARIANT: readonly ["full", "main"];
export type HeaderVariant = (typeof HEADER_VARIANT)[number];
/** Props for any “slot” component */
export interface SlotProps {
children: React.ReactNode;
className?: string;
}
/** Props for slot component with optional children */
export interface OptionalSlotProps extends Omit<SlotProps, 'children'> {
children?: React.ReactNode;
}
/** ========== Recursive check util (TS-friendly) ========== */
export declare const checkIfChildExists: (children: React.ReactNode, target: React.ComponentType<any>, shouldSearchNested?: boolean) => boolean;
export declare const validateHeaderChildren: ({ hasBrandArea, hasPrimaryArea, hasSecondaryArea, }: {
hasBrandArea: boolean;
hasPrimaryArea: boolean;
hasSecondaryArea: boolean;
}) => void;