VitNode
Forms

Icon Picker

Choose an icon or emoji from a list of icons.

Preview

Usage

import { z } from 'zod';
import { AutoForm } from 'vitnode-frontend/form/auto-form';
import { AutoFormIconPicker } from 'vitnode-frontend/form/fields/icon';
const formSchema = z.object({
  icon: z.string(),
});
<AutoForm
  formSchema={formSchema}
  fields={[
    {
      id: 'icon',
      component: AutoFormIconPicker, 
    },
  ]}
/>

API Reference

PropTypeDefault
onChange
(icon: string) => void
-
value
string
-
disabled
boolean
-
required
boolean
-

On this page