> Portal Navigation:
> 
> - Append `.md` to any URL under `https://dev.wix.com/docs/` to get its markdown version.
> - Pages are either content pages (article or reference text) or menu pages (a list of links to child pages).
> - To get a menu page, truncate any URL to a parent path and append `.md` (e.g. `https://dev.wix.com/docs/sdk.md`, `https://dev.wix.com/docs/sdk/core-modules.md`).
> - Top-level index of all portals: https://dev.wix.com/docs/llms.txt
> - Full concatenated docs: https://dev.wix.com/docs/llms-full.txt

## Resource: getAppliedPreset()

## Article: getAppliedPreset()

## Article Link: https://dev.wix.com/docs/sdk/host-modules/editor/react-elements/presets/get-applied-preset.md

## Article Content:

<!-- Source: packages/public-editor-platform-sdk/src/element/index.ts in wix-private/editor-platform -->
# getAppliedPreset()

Retrieves the key of the [preset](https://dev.wix.com/docs/build-apps/develop-your-app/extensions/site-extensions/editor-react-components/manifest-reference/editor-element/presets.md) currently applied to the selected component. A preset is a named, predefined visual variation of the component, declared in the manifest's `presets` property.

## Syntax

```ts
function getAppliedPreset(): Promise<string | null>
```

## Returns

`Promise<string | null>`

The key of the applied preset, or `null` if no preset is applied.

## Example

```js
import { reactElements } from '@wix/editor';

const appliedPreset = await reactElements.getAppliedPreset();
```

## See also

- [applyPreset()](https://dev.wix.com/docs/sdk/host-modules/editor/react-elements/presets/apply-preset.md)
- [getPresetDefinitions()](https://dev.wix.com/docs/sdk/host-modules/editor/react-elements/presets/get-preset-definitions.md)
- [About the React Elements API](https://dev.wix.com/docs/sdk/host-modules/editor/react-elements/introduction.md)