Components
Settings Blobs
Simple Settings Blobs to organize your settings subpages
Install the component with CLI
Run this command in your terminal and the component will be created automatically:
npx polarisui-cli add settingsblobs
Install the component manually
Create a new folder in /app/
called components/
. There create a new file and copy the code below into the component.
Usage
To use this component in your app, simply import it and render it anywhere in your code:
1import { SettingsBlobs } from "../components/settingsblobs";
1<SettingsBlobs />
By default, all PolarisUI components are wrapped in a <Layout.Section>
.
This means they render full width within the page layout, following Polaris defaults.
If you want the component to only take half width or be placed differently (eg. in a Indextable):
Remove the <
Layout.Section
> wrapper → the component will no longer span the entire width.Wrap it in a
Card
(or any Polaris container) instead to control the sizing.
Customization
To add new settings blobs, just extend the settingsCards
array with another object. Each blob is basically config-driven:
icon
: pass in any Polaris icontitle
: the label shown in the carddescription
: the small text under the titleurl
: the route the card links todisabled: true
→ renders as inactive (shows(soon)
, muted styles and link is inactive)hideicon: true
→ card renders without the icon