metadata-based-explorer1
Version:
Box UI Elements
19 lines (15 loc) • 428 B
Flow
// @flow
import * as React from 'react';
type Props = {
children: React.Node,
className?: string,
/** Title of the inline error. */
title: React.Node,
};
const InlineError = ({ children, className = '', title }: Props) => (
<div className={`inline-alert inline-alert-visible inline-alert-error ${className}`}>
<b>{title}</b>
<div>{children}</div>
</div>
);
export default InlineError;