Pack
SaaS pack
Apps people work in: records in tables, settings pages, plans and billing.
Adding it
npx prongs add saasCopies the 8 intents below into your registry, skipping any it already has, and regenerates PRONGS.md. A “not for” line that points at an intent your registry does not have is left out.
Intents
action.* Action
nav.* Navigation
choice.* Choice
layout.* Layout
Next to the starter
The starter intents this pack’s intents are told apart from. Each pack intent’s page says when to use which.
action.commandDoes something and stays on the page: edit, add, remove, retry, share, open, back, refresh, duplicate, move, download, archive, sign out. The label says the verb; pass verb="duplicate", "archive"... to name it for analytics. Pass tone="danger" when it is destructive or hard to undo, like leaving a workspace.
<button>choice.openShows what is picked and opens the choices to change it: a sort order, sources. The trigger of a Popover picker
<button>layout.fieldOne form field: its label, input, help text and error
<div>layout.shellThe frame of an app with a sidebar: one layout.aside beside the main column. Used once, around the signed-in part of the app
<div>action.startThe main action of a page or region that begins something: New project, Get started, Sign up, Start a trial. Pass verb="create", "signup"... to name it for analytics.
<a>choice.filterNarrows which items are shown: All, Unread, a source. Pass pressed while it applies
<button>layout.noticeA message about the page or the account: check your email, password updated, your trial ends soon. Add an action.dismiss when it can be dismissed
<div>nav.pageA link to a page in site or app navigation, including Sign in. Pass current on the page you are on
<a>
For registry authors
Pack intent. prongs add saas puts the saas pack’s intents in your registry. They are then yours like the starter intents: rename, restyle and add to them, and see them with prongs add gallery.