UNPKG

@uva-glass/component-library

Version:

React components UvA

14 lines (13 loc) 516 B
import { ReactElement } from 'react'; type FeedbackLevel = 'success' | 'warning' | 'error'; export interface FeedbackBoxProps { /** The id of the element. */ id?: string; /** The feedback level, indicates what icon is used. */ level: FeedbackLevel; /** The feedback value. */ feedback: string | ReactElement; } /** Represents a component to show feedback. */ export declare const FeedbackBox: ({ id, level, feedback }: FeedbackBoxProps) => import("react/jsx-runtime").JSX.Element; export {};