Form

PreviousNext
Docs
skyrblock

Preview

Loading preview…
components/form/FormComputedField.tsx
'use client';

import { ComputedField } from '@skyroc/form';
import FormField from './FormField';
import type { FormComputedFieldProps } from './types';

const FormComputedField = <Values = any,>(props: FormComputedFieldProps<Values>) => {
  return (
    <FormField
      component={ComputedField}
      {...props}
    />
  );
};

export default FormComputedField;

Installation

npx shadcn@latest add @skyr/form

Usage

import { Form } from "@/components/form"
<Form />