# InlineStyleDefinition

interface

Style definition.

An object describing a style definition. It contains the style `name`, `element` name and an array of CSS `classes`.

```typescript
// This style will create <h2 class="foo">...</h2> in the document data.
{
  name: 'Example style',
  element: 'h2',
  classes: [ 'foo' ]
}
```

[See source](https://github.com/ckeditor/ckeditor5/blob/master/packages/ckeditor5-style/src/styleutils.ts#L346)

<a id="properties">

## Properties

<a id="member-classes">

### `classes: Array<string>` _(inherited)_

[See source](https://github.com/ckeditor/ckeditor5/blob/master/packages/ckeditor5-style/src/styleconfig.ts#L90)

<a id="member-element">

### `element: string` _(inherited)_

[See source](https://github.com/ckeditor/ckeditor5/blob/master/packages/ckeditor5-style/src/styleconfig.ts#L89)

<a id="member-ghsAttributes">

### `ghsAttributes: Array<string>`

[See source](https://github.com/ckeditor/ckeditor5/blob/master/packages/ckeditor5-style/src/styleutils.ts#L347)

<a id="member-name">

### `name: string` _(inherited)_

[See source](https://github.com/ckeditor/ckeditor5/blob/master/packages/ckeditor5-style/src/styleconfig.ts#L88)

<a id="member-previewTemplate">

### `previewTemplate: TemplateDefinition`

[See source](https://github.com/ckeditor/ckeditor5/blob/master/packages/ckeditor5-style/src/styleutils.ts#L348)

---

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