Files
actual/packages/component-library/src/FormError.tsx
2026-02-10 13:33:20 +00:00

15 lines
325 B
TypeScript

import type { CSSProperties, ReactNode } from 'react';
import { View } from './View';
type FormErrorProps = {
style?: CSSProperties;
children?: ReactNode;
};
export function FormError({ style, children }: FormErrorProps) {
return (
<View style={{ color: 'red', fontSize: 13, ...style }}>{children}</View>
);
}