mirror of
https://github.com/OneUptime/oneuptime.git
synced 2026-04-06 00:32:12 +02:00
22 lines
572 B
TypeScript
22 lines
572 B
TypeScript
import React, { FunctionComponent, ReactElement } from "react";
|
|
|
|
export interface ComponentProps {
|
|
title: string;
|
|
children: ReactElement;
|
|
}
|
|
|
|
const TinyFormDocumentation: FunctionComponent<ComponentProps> = (
|
|
props: ComponentProps,
|
|
): ReactElement => {
|
|
return (
|
|
<div className="mt-2 text-xs text-gray-500">
|
|
<details className="cursor-pointer">
|
|
<summary className="hover:text-gray-700">{props.title}</summary>
|
|
<div className="mt-2 space-y-1">{props.children}</div>
|
|
</details>
|
|
</div>
|
|
);
|
|
};
|
|
|
|
export default TinyFormDocumentation;
|