www/apps/bloom/app/features/selection-mode/page.mdx
import { InlineIcon, InProductAction, InProductActions } from "docs-ui" import { CursorDefault, Palette, Typography, Gap, Expand, ImageSparkle, CloudArrowUp } from "@medusajs/icons"
export const metadata = {
title: Use Selection Mode,
}
<InProductAction product={"bloom"} type={"MEDUSA_AI_ENABLE_SELECTION_MODE"}>Selection Mode</InProductAction> lets you select and edit elements in your store directly. Use it to specify exactly what you want Bloom to change, or make quick edits yourself.
Selection Mode is a feature in Store view that lets you click on an element in your store to select it. Once selected, you can edit its text, colors, fonts, spacing, and images directly, or ask Bloom to make changes to that specific element.
Selection Mode helps you work faster and more precisely:
Selection Mode is perfect for designers and store owners who want more control over their store's appearance and content. Use it to fine-tune your design and make quick updates without needing to ask Bloom for every change.
Selection Mode only works in Store view, not Admin view. For changes to customizations in the admin dashboard, ask Bloom to make the change with a prompt instead of using Selection Mode.
You also can't edit admin-managed content with Selection Mode. Only edit content and elements that are part of your store's design. For changes to product information and other admin-managed data, use the admin dashboard or ask Bloom to make the change with a prompt.
To toggle <InProductAction product={"bloom"} type={"MEDUSA_AI_ENABLE_SELECTION_MODE"}>Selection Mode</InProductAction> while previewing your store:
When you make changes using Selection Mode manually, make sure to click the "Save All" button to save your changes. Otherwise, you lose your changes when you refresh the page.
Once Selection Mode is on, you can select any element on your store to edit it.
To select an element:
The next sections explain how to edit selected elements.
Use Selection Mode to help Bloom understand exactly which element to edit when you make a request.
To select an element and ask Bloom to edit it:
With Selection Mode, make quick text changes without asking Bloom. This is useful to make edits quickly and save your Bloom credits for bigger changes.
To edit text of an element:
<Note>You can't edit text like product names, descriptions, or any data managed in the admin dashboard with Selection Mode. This only works for text elements in your store's design.
</Note>With Selection Mode, you can change text and background colors instantly without using credits. This is useful for making quick design tweaks to improve the look of your store.
To change colors for an element:
With Selection Mode, you can change the font family for text or sections without using credits. This is useful for quickly updating the typography of your store.
To change fonts for an element:
With Selection Mode, you can fine-tune spacing around and inside elements without using Bloom credits. This is useful for making quick layout adjustments to improve the look of your store.
To adjust spacing for an element:
When you adjust margin and padding, it affects both desktop and mobile views. If you want to make responsive spacing changes, ask Bloom to make the changes instead and clarify the need for responsive adjustments in your prompt.
</Note>Using Selection Mode, you can replace images quickly without using credits. This is useful for updating section images and banners across your store.
To replace an image for an element:
<Note>Image replacement only works for img elements. It also doesn't work for product images since those are managed in the admin dashboard. To change background or product images, ask Bloom to make the change with a prompt.
img element.img element.