# `PhoenixKitEntities.FieldType`
[🔗](https://github.com/BeamLabEU/phoenix_kit_entities/blob/v0.4.6/lib/phoenix_kit_entities/field_type.ex#L1)

Struct representing an entity field type definition.

## Fields

- `name` - Field type identifier (e.g., `"text"`, `"select"`)
- `label` - Human-readable label (e.g., `"Text"`, `"Select Dropdown"`)
- `description` - Short description of the field type
- `category` - Category atom (`:basic`, `:numeric`, `:boolean`, `:datetime`, `:choice`, `:advanced`)
- `icon` - Heroicon name for rendering
- `requires_options` - Whether the field type requires options to be defined
- `default_props` - Default properties for new fields of this type

# `t`

```elixir
@type t() :: %PhoenixKitEntities.FieldType{
  category: :basic | :numeric | :boolean | :datetime | :choice | :advanced,
  default_props: map(),
  description: String.t() | nil,
  icon: String.t() | nil,
  label: String.t(),
  name: String.t(),
  requires_options: boolean()
}
```

# `from_map`

```elixir
@spec from_map(map()) :: t()
```

Converts a plain map to a `%FieldType{}` struct.

---

*Consult [api-reference.md](api-reference.md) for complete listing*
