Search Docs
Loading...
Skip to content

Component Reference

This guide provides the complete list of all built-in component IDs for each of the five customizable UI areas in CE.SDK. Use this reference when you need to find the exact ID for a component to show, hide, reorder, or modify using the Component Order API.

Component IDs in CE.SDK follow the pattern ly.img.[feature].[area] (for example, ly.img.undoRedo.navigationBar). Custom components you create can use any ID pattern.

For information on how to use these IDs with the API methods, see the Component Order API Reference. For task-focused tutorials, see the Quick Start guides.

Layout Components#

These utility components are available across multiple UI areas:

IDDescriptionAvailable In
ly.img.separatorVisual divider lineAll areas
ly.img.spacerFlexible empty space that expands to fill available roomAll areas

Components available in 'ly.img.navigation.bar':

IDDescription
ly.img.back.navigationBarBack button (uses onBack handler)
ly.img.close.navigationBarClose button (uses onClose handler)
ly.img.undoRedo.navigationBarUndo and redo buttons
ly.img.zoom.navigationBarZoom controls
ly.img.preview.navigationBarPreview mode toggle
ly.img.pageResize.navigationBarPage size controls
ly.img.title.navigationBarEditable document title

Action Buttons#

IDDescription
ly.img.action.navigationBarGeneric action button (requires key property to distinguish instances)
ly.img.actions.navigationBarDropdown menu containing multiple actions
ly.img.saveScene.navigationBarSave scene action
ly.img.exportImage.navigationBarExport as image action
ly.img.exportPDF.navigationBarExport as PDF action
ly.img.exportVideo.navigationBarExport as video action
ly.img.shareScene.navigationBarShare scene action
ly.img.exportScene.navigationBarExport scene file action
ly.img.exportArchive.navigationBarExport as archive action
ly.img.importScene.navigationBarImport scene file action
ly.img.importArchive.navigationBarImport from archive action

Action buttons support inline configuration with onClick handlers:

cesdk.ui.insertOrderComponent(
{ in: 'ly.img.navigation.bar', position: 'end' },
{
id: 'ly.img.action.navigationBar',
key: 'my-export',
label: 'Export',
icon: '@imgly/Download',
onClick: async () => {
// Export logic here
}
}
);

Dock Components#

Components available in 'ly.img.dock':

IDDescription
ly.img.assetLibrary.dockAsset library button with configurable entries

The dock is primarily configured through the ly.img.assetLibrary.dock component. Use the entries array to specify which asset library panels appear:

cesdk.ui.setComponentOrder({ in: 'ly.img.dock' }, [
'ly.img.spacer',
{
id: 'ly.img.assetLibrary.dock',
entries: ['ly.img.image', 'ly.img.text', 'ly.img.shape']
}
]);

Inspector Bar Components#

Components available in 'ly.img.inspector.bar'. The inspector bar supports edit mode context via the when option.

Block Operations#

IDDescription
ly.img.group.create.inspectorBarCreate group from selection
ly.img.group.ungroup.inspectorBarUngroup selected group
ly.img.combine.inspectorBarBoolean shape operations (union, subtract, etc.)
ly.img.position.inspectorBarPosition and alignment controls

Appearance & Effects#

IDDescription
ly.img.fill.inspectorBarFill color and type controls
ly.img.stroke.inspectorBarStroke and border controls
ly.img.shadow.inspectorBarDrop shadow controls
ly.img.opacityOptions.inspectorBarOpacity and blend mode
ly.img.adjustment.inspectorBarColor adjustments (brightness, contrast, etc.)
ly.img.filter.inspectorBarPhoto filters
ly.img.effect.inspectorBarVisual effects
ly.img.blur.inspectorBarBlur effects
ly.img.animations.inspectorBarAnimation controls

Text Controls#

IDDescription
ly.img.text.typeFace.inspectorBarFont family selector
ly.img.text.fontSize.inspectorBarFont size control
ly.img.text.bold.inspectorBarBold toggle
ly.img.text.italic.inspectorBarItalic toggle
ly.img.text.alignHorizontal.inspectorBarText alignment (left, center, right, justify)
ly.img.text.style.inspectorBarText style presets
ly.img.text.advanced.inspectorBarAdvanced text options (line height, letter spacing, etc.)
ly.img.text.background.inspectorBarText background highlight

Media Controls#

IDDescription
ly.img.trim.inspectorBarVideo trim button
ly.img.trimControls.inspectorBarVideo trim controls (shown in Trim edit mode)
ly.img.crop.inspectorBarImage crop button
ly.img.cropControls.inspectorBarImage crop controls (shown in Crop edit mode)
ly.img.volume.inspectorBarAudio volume control
ly.img.playbackSpeed.inspectorBarVideo playback speed
ly.img.audio.replace.inspectorBarReplace audio source
ly.img.video.caption.inspectorBarVideo caption controls

Shape & Cutout Controls#

IDDescription
ly.img.shape.options.inspectorBarShape-specific options
ly.img.cutout.type.inspectorBarCutout type selector
ly.img.cutout.offset.inspectorBarCutout offset control
ly.img.cutout.smoothing.inspectorBarCutout edge smoothing

View Controls#

IDDescription
ly.img.inspectorToggle.inspectorBarToggle between default and advanced view

Canvas Menu Components#

Components available in 'ly.img.canvas.menu'. The canvas menu appears on right-click (desktop) or long-press (mobile) and supports edit mode context.

Block Actions#

IDDescription
ly.img.delete.canvasMenuDelete selected block
ly.img.duplicate.canvasMenuDuplicate selected block
ly.img.replace.canvasMenuReplace block content
ly.img.placeholder.canvasMenuPlaceholder settings

Edit Actions#

IDDescription
ly.img.copy.canvasMenuCopy to clipboard
ly.img.paste.canvasMenuPaste from clipboard
ly.img.flipX.canvasMenuFlip horizontally
ly.img.flipY.canvasMenuFlip vertically

Layer Ordering#

IDDescription
ly.img.bringForward.canvasMenuBring forward one layer
ly.img.sendBackward.canvasMenuSend backward one layer

Page Actions#

IDDescription
ly.img.page.moveUp.canvasMenuMove page up in page list
ly.img.page.moveDown.canvasMenuMove page down in page list

Group Actions#

IDDescription
ly.img.group.select.canvasMenuSelect entire group
ly.img.group.enter.canvasMenuEnter group to edit children

Text Actions#

IDDescription
ly.img.text.edit.canvasMenuEnter text edit mode
ly.img.text.color.canvasMenuQuick text color change
ly.img.text.bold.canvasMenuToggle bold (in Text edit mode)
ly.img.text.italic.canvasMenuToggle italic (in Text edit mode)
ly.img.text.variables.canvasMenuInsert variable (in Text edit mode)

Other#

IDDescription
ly.img.action.canvasMenuGeneric action (requires key property)
ly.img.options.canvasMenuOptions submenu

Canvas Bar Components#

Components available in 'ly.img.canvas.bar'. This area requires the at option to specify position ('top' or 'bottom').

IDDescription
ly.img.settings.canvasBarSettings/preferences button
ly.img.page.add.canvasBarAdd new page button

The canvas bar is the most minimal area, typically showing contextual controls based on the current edit mode.

// Get top canvas bar order
const topBar = cesdk.ui.getComponentOrder({
in: 'ly.img.canvas.bar',
at: 'top'
});
// Get bottom canvas bar order
const bottomBar = cesdk.ui.getComponentOrder({
in: 'ly.img.canvas.bar',
at: 'bottom'
});

Component Configuration Options#

When components are passed as objects instead of string IDs, they support inline configuration.

Common Properties#

All components support these properties:

PropertyTypeDescription
idstringComponent identifier (required)
keystringUnique key when same component appears multiple times
disabledbooleanDisable the component
hiddenbooleanHide the component

Action Button Properties#

Components with ID ly.img.action.* support additional properties:

PropertyTypeDescription
labelstringButton label text
iconstringIcon identifier (e.g., '@imgly/Download')
onClickfunctionClick handler function
variant'regular' | 'accent'Button visual style

Asset Library Dock Properties#

The ly.img.assetLibrary.dock component supports:

PropertyTypeDescription
entriesstring[]Array of asset library entry IDs
labelstringCustom label for the button

Troubleshooting#

Component not appearing#

  1. Verify the component ID is spelled correctly with the right area suffix
  2. Check if the component is included in the current area’s order using getComponentOrder()
  3. Confirm the component isn’t hidden by a hidden: true property

Multiple components with same ID#

Use the key property to distinguish between instances:

cesdk.ui.setComponentOrder({ in: 'ly.img.navigation.bar' }, [
{ id: 'ly.img.action.navigationBar', key: 'save', label: 'Save' },
{ id: 'ly.img.action.navigationBar', key: 'export', label: 'Export' }
]);

Component disabled unexpectedly#

Check if a feature flag is disabling it:

// Check if feature is enabled
const enabled = cesdk.feature.isEnabled('ly.img.navigation.bar');
// Re-enable if needed
cesdk.feature.enable('ly.img.navigation.bar');

Next Steps#