ui.drawer in your SwishOptions.
The drawer has two sections: a header and a footer navigation bar.
Default configuration:
Header
Thedrawer-header section controls the top bar of the drawer.
The header is always shown — hidden has no effect on it, and it is not exposed
as a toggle in the Swish admin. Use the options below to change what it carries.
A logo replaces the title. With neither set, the header shows your store’s name — the one from Settings → Store details on Shopify, or
context.shopName if you build your own context.
Greeting
SetheaderStyle to "greeting" to greet customers at the top of the drawer instead of repeating the logo from your store’s header. In the Swish admin, it’s Views → Drawer → Header → Header style.
- A signed-in customer sees Hi, Sarah, with the first name from their Shopify account.
- A guest sees
guestGreeting, or Welcome when it’s empty. A signed-in customer with no first name on their account sees the same.
drawerHeader.greeting and drawerHeader.guestGreeting translations. guestGreeting may itself be a t:-prefixed translation key.
Account button destination
accountButtonUrl takes either a preset or a URL:
Use this if you’d rather customers managed their account on your own pages than in Swish’s profile view. Both URL options are a normal link, so a customer can open them in a new tab, and a signed-out customer is sent to sign in by whatever page they land on.
The setting has no effect when
accountButton is false.
The drawer footer’s Profile item and the Account link placement still open the Swish profile view. To take customers off it everywhere, turn those off too — see Account.
Example - add a logo and close button:
Footer navigation
Thedrawer-footer section controls the bottom navigation bar.
Override the default navigation items to control which views appear and in what order:
Drawer dimensions
Control the drawer panel size through design tokens:Further reading
- Home for the default landing view
- Header placement to configure the button that opens the drawer
- Icons to customize navigation bar icons