> 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 # Method name: getDesignPreset() # Method package: wixWidget # Method menu location: wixWidget --> getDesignPreset # Method Link: https://dev.wix.com/docs/velo/velo-only-apis/wix-widget/get-design-preset.md # Method Description: Gets the widget's current design preset. The `getDesignPreset()` function returns a Promise that resolves to the widget's current preset name. To use this function on an inner (nested) widget, use [`getNestedWidget()`](#getNestedWidget). > **Note**: > The `getDesignPreset()` function doesn't work in preview mode. # Method Code Examples: *** Note: do not assume any prop names or enum values other than the ones in the example. ## Get a widget's design preset ```javascript import wixWidget from 'wix-widget'; // ... wixWidget.getDesignPreset() .then ((designPreset) => { // Code to execute with the designPreset string }) // For example, designPreset can be "preset-1-wide" ``` ---