@myadbox/stellar-layouts
v0.1.3
Published
Sesimi's Stellar app-shell & layout components, built on @myadbox/stellar-ui
Readme
@myadbox/stellar-layouts
Sesimi's Stellar app-shell & layout components — LayoutApp (header, sidebars,
menu), PageActionHeader, GridLayout, LayoutFocussedContent,
LayoutFormChildrenWithHeading, LayoutFloatingActionGroup — built on top of
@myadbox/stellar-ui.
Install (external consumers)
npm install @myadbox/stellar-layouts @myadbox/stellar-ui react react-dom@myadbox/stellar-ui, react, and react-dom (18 or 19) are peer
dependencies. Everything else the components need ships bundled.
Tailwind wiring — required
Components are styled with Tailwind utility classes; the consuming app's Tailwind build generates the CSS. Without this wiring every class silently compiles to nothing (symptoms: unconstrained SVG icons, no spacing).
// tailwind.config.ts
import {sesimi} from '@myadbox/stellar-ui/styles/theme'
export default {
presets: [sesimi],
content: [
'./src/**/*.{js,jsx,ts,tsx}',
// Scan both packages' shipped bundles for class names:
'./node_modules/@myadbox/stellar-ui/*.{js,mjs}',
'./node_modules/@myadbox/stellar-layouts/*.{js,mjs}',
],
}Also import stellar-ui's base stylesheet (reset + non-Tailwind helpers) once, as stellar-ui already requires:
import '@myadbox/stellar-ui/stellar-ui.css'In-repo consumers need none of this — the monorepo's Tailwind configs already
scan this package's source, and @myadbox/* resolves to source via tsconfig
paths.
Router-agnostic usage
Menu items accept an as: ElementType prop — pass your app's link component
(React Router Link, Gatsby Link, or a plain a).
Guidelines
The design guidance ships with the package so it matches the installed version:
GUIDELINES.md— the Layouts guideline page (principles and examples) and every component's Do and Don't lists.guidelines.json— the same content as data.
Both generated files are built from the components' TSDoc and the Layouts page
in stellar-ui's Storybook; edit those, not the generated output. The other
categories ship with @myadbox/stellar-ui.
Development
nx test stellar-layouts— unit tests (Jest)nx run stellar-layouts:build— library build (Vite, ESM + CJS + types)nx run stellar-layouts:verify-react19— static React-19 safety gate- Stories are served by stellar-ui's Storybook:
nx run stellar-ui:storybook
Releasing
nx run stellar-layouts:release — runs the React-19 gate, bumps the patch
version, builds, and publishes dist/client/packages/ui/stellar-layouts to npm
(requires @myadbox publish rights; same manual flow as stellar-ui). Commit the
version bump afterwards.
