UNPKG

@patreon/studio

Version:

Patreon Studio Design System

21 lines (20 loc) 687 B
import React from 'react'; import type { BaseProps } from '../../types/component'; declare type Size = 'sm' | 'xs'; export interface InlineSuccessProps extends Pick<BaseProps, 'data-tag'> { children: React.ReactNode; /** * id of the associated input. The concatenation of this value and * `InlineSuccess.IDSuffix` is set as the `id` of the rendered node. */ inputId: string; /** * The size of the text and icon, defaults to 'sm'. */ size?: Size; } export declare const InlineSuccess: { ({ children, "data-tag": dataTag, inputId, size }: InlineSuccessProps): React.JSX.Element; getSuccessId: (inputId: string) => string; }; export {};