2021-03-29 00:02:43 -07:00
# Element
`Element` objects are a type of node in a Slate document that contain other `Element` nodes or `Text` nodes. They can be either "blocks" or "inlines" depending on the Slate editor's configuration.
```typescript
interface Element {
children: Node[]
[key: string]: unknown
}
```
2021-03-30 00:08:35 -07:00
- [Static methods ](static-methods )
- [Retrieval methods ](#retrieval-methods )
- [Check methods ](#check-methods )
2021-03-29 00:02:43 -07:00
2021-03-30 00:08:35 -07:00
## Static methods
2021-03-29 23:36:22 -07:00
2021-03-29 23:35:08 -07:00
### Retrieval methods
###### `Element.matches(element: Element, props: Partial<Element>): boolean`
Check if an element matches a set of `props` . Note: This checks custom properties, but it does not ensure that any children are equivalent.
### Check methods
2021-03-29 00:02:43 -07:00
###### `Element.isElement(value: any): value is Element`
Check if a `value` implements the `Element` interface.
###### `Element.isElementList(value: any): value is Element[]`
Check if a `value` is an array of `Element` objects.