Files
openpanel/packages/mantine/src/components/fields/text/index.tsx
Stefan Pejcic 09f9f9502d packages
2024-11-07 19:03:37 +01:00

14 lines
464 B
TypeScript

import React from "react";
import { Text } from "@mantine/core";
import type { TextFieldProps } from "../types";
/**
* This field lets you show basic text. It uses Mantine {@link https://mantine.dev/core/text `<Text>`} component.
*
* @see {@link https://refine.dev/docs/api-reference/mantine/components/fields/text} for more details.
*/
export const TextField: React.FC<TextFieldProps> = ({ value, ...rest }) => {
return <Text {...rest}>{value}</Text>;
};