# ViewElementDefinition

typedef

A plain object that describes a view element or element name.

Elements without attributes can be given simply as a string:

```typescript
const viewDefinition = 'p';
```

Which will be treated as:

```typescript
const viewDefinition = {
	name: 'p'
};
```

[See source](https://github.com/ckeditor/ckeditor5/blob/master/packages/ckeditor5-engine/src/view/elementdefinition.ts#L95)

#### Value

`string | ViewElementObjectDefinition`

---

Full index of the CKEditor 5 API reference: [llms.txt](llms.txt)
