Util Print Styles
Printing invoices and account statements with a corporate header and a legal block on paper only.
Choose the primitives library your project already uses. Both look the same: your theme, not the variant, controls colors, shape, type and motion.
About this block
What it's for
- Printing invoices and account statements with a corporate header and a legal block on paper only.
- Exporting analytical reports to paper with forced page breaks per section.
- Operational worksheets in landscape A3 with narrow margins and printed backgrounds.
For server-side PDF generation or binary file download, use Util Export Menu.
Includes
- Page setup
- Paper size selection
- Orientation control
- Margin presets
- Print scaling
- Running header footer
- Print region scoping
- Page break control
Works with
- Radix UI and Base UI primitives (pick the one your project uses)
- React 19, Next.js App Router and Tailwind CSS 4, installed with the shadcn CLI
- Your theme tokens, in light and dark mode
Install
Included with Agentic UI Kit (one-time license). Install needs your license key: see pricing · connect your project.
agentic-ui add util-print-stylesnpx shadcn@4.17.0 add @agentic-ui/util-print-stylesUsed in
A standalone component: drop it into any screen.
- Type
- Block
- Variants
- Radix UI and Base UI
- Themes
- Light and dark
- Widths
- Preview it at desktop, tablet and mobile widths above.
- Motion
- Animated, with a reduced-motion fallback
- npm packages
lucide-react- Registry dependencies
lib-primitives- Files
9 files
- components/agentic-ui/util-print-styles/print.css
- components/agentic-ui/util-print-styles/index.tsx
- components/agentic-ui/util-print-styles/types.ts
- components/agentic-ui/util-print-styles/page-setup.ts
- components/agentic-ui/util-print-styles/generate-print-css.ts
- components/agentic-ui/util-print-styles/print-regions.tsx
- components/agentic-ui/util-print-styles/print-setup-panel.tsx
- components/agentic-ui/util-print-styles/print-styles-provider.tsx
- components/agentic-ui/util-print-styles/print-document.tsx
Related components
Util Copy Block
Showing a package installation snippet with npm, pnpm and yarn tabs.
Details and live previewUtil Export Menu
Exporting financial transaction ledgers to CSV format with currency formatting.
Details and live previewUtil Shortcuts Overlay
Shortcut reference sheet for an admin console opened with the ? key.
Details and live previewA11y Contrast Badge
Check in the browser whether the theme palette meets AA before opening the PR.
Details and live preview