import { PolymorphicComponentPropsWithRef } from '../../utils'; import * as React from 'react'; /** @deprecated use variant="secondary" with size="small" instead */ declare const tertiary = "tertiary"; export type SquareButtonBaseProps = { /** Tekst og ikon */ children: React.ReactNode; /** Ekstra klassenavn */ className?: string; /** Knappens uttrykk */ variant?: 'success' | 'secondary' | typeof tertiary; /** Størrelsen på knappen * @default 'medium' */ size?: 'small' | 'medium' | 'large'; /** Deaktivering av knappen * @default false */ disabled?: boolean; /** Om knappen er opptatt, f.eks. med å lagre eller å kjøpe * @default false */ loading?: boolean; /** DOM-elementet knappen rendres som */ as?: string | React.ElementType; }; export type SquareButtonProps = PolymorphicComponentPropsWithRef; export type SquareButtonComponent = (props: SquareButtonProps) => React.ReactElement | null; declare const defaultElement = "button"; export declare const SquareButton: SquareButtonComponent; export {};