Components
Photo Field

Photo Field

A photo field component for use inside a form, used for to display/upload image

Usage

import { PhotoField } from '@/components/ui/formfield';
 
export function PhotoFieldDemo() {
  return <PhotoField name="photo" label="Photo" />;
}
import { PhotoField } from '@/components/ui/formfield';
 
export function PhotoFieldDemo() {
  return <PhotoField name="photo" label="Photo" />;
}

API Reference

PropTypeDefault
name*string
idstring
labelstring
altstring
requiredboolean
readOnlyboolean
errorstring
valuestring
defaultValuestring
onChangeevent
cdnUrlstring