Hulian UIv0.93.5413 components0 components
  • Start
  • Components
  • Blocks
  • Pages
  • Demos
  • Changelog
ChineseEnglish
  • ComponentsComponents
  • ThemeTheme

Collections

  • QuestionCard
  • Table
  • Book3D
  • ProTable
  • PricingTable
  • JsonViewer
  • EditableTable
  • List
  • Descriptions
  • RowActions
  • Tree
  • Card
  • Carousel
  • Video
  • Audio
  • BentoGrid
  • Image
  • MagicCard
  • AnimatedList
  • Marquee
  • Sortable
  • Kanban
  • DesignCanvas
  • LayerTree
  • StageDraw
  • SlideDeck
  • PresenterView
  • ComponentPicker
  • EventStream
  • QueueLane
  • DocumentSheet
  • Novel reader
  • Scheduler
  • Org classroom
  • Danmaku
  • LiveChat
  • LivePlayer
  • LogViewer
  • FileTree
  • CodeReviewThread
  • VirtualList
  • InfiniteScroll
  • LogoLoop
  • BounceCards
  • CardSwap
  • ChromaGrid
  • CircularGallery
  • DomeGallery
  • FlyingPosters
  • InfiniteMenu
  • MagicBento
  • ScrollStack
  • ProfileCard
  • TiltedCard
  • PixelCard
  • DecayCard
  • ReflectiveCard
  • Folder

Charts and Diagrams

  • Flow
  • Diagram
  • Paper
  • SequenceDiagram
  • Sankey
  • Sparkline
  • Funnel
  • Treemap
  • Gantt
  • Heatmap
  • ContributionGraph
  • Legend
  • Chart
  • WorldMap

Information

  • ImageViewer
  • LiveProductCard
  • DiffStat
  • ScoreRing
  • ScoreScale
  • Badge
  • Dot
  • StatusDot
  • Chip
  • FilterChip
  • Coupon
  • Tag
  • Annotation
  • Avatar
  • AvatarCircles
  • User
  • QRCode
  • Comment
  • RelativeTime
  • GitCommit
  • DeployStatus
  • ShieldBadge
  • AwardBadge
  • CreditCard
  • IconTile

Metrics

  • Stat
  • Statistic
  • Meter
  • Timeline
  • NumberTicker

Placeholders

  • Empty
  • Skeleton
  • Watermark

DocumentSheet

document-sheet

Frames business documents on an A4-style sheet with header, section, footer, and print controls.

Usage

Basic document

A centered piece of A4 paper with a print button on the top (the entire toolbar is hidden when printing).

Hulian Design Studio
Quote

To

XX Technology Co., Ltd.
tsx
<DocumentSheet size="a4">
  <DocumentSheetHeader>
    <div className="text-lg font-bold">Hulian Design Studio</div>
    <div className="text-xl font-bold">Quotation</div>
  </DocumentSheetHeader>
  <DocumentSheetSection title="To">
    <div className="font-medium">XX Technology Co., Ltd.</div>
  </DocumentSheetSection>
</DocumentSheet>

Paragraph and footer signature

DocumentSheetSection is segmented, DocumentSheetFooter contains separators, and DocumentSheetSignature gives a stable signature bit alignment.

Service Description

Includes official website design, component library customization and front-end implementation.

Note: Quotes are valid for 30 days.

Authorized representative (signature)
tsx
<DocumentSheet size="a4" printable={false}>
  <DocumentSheetSection title="Service Description">
    Includes official website design, component library customization and front-end implementation.
  </DocumentSheetSection>
  <DocumentSheetFooter>
    <div className="flex items-end justify-between gap-8">
      <p className="text-xs">Note: The quotation is valid for 30 days. </p>
      <DocumentSheetSignature label="Authorized Representative (Signature)" />
    </div>
  </DocumentSheetFooter>
</DocumentSheet>

Custom printing callback

Pass onPrint to take over the printing action (such as verifying first and then window.print). By default, the built-in button directly calls window.print().

Invoice header

XX Technology Co., Ltd.
tsx
<DocumentSheet
  size="a4"
  onPrint={() => {
    // Customize logic before printing
    window.print();
  }}
>
  <DocumentSheetSection title="Invoice header">
    XX Technology Co., Ltd.
  </DocumentSheetSection>
</DocumentSheet>

When to use

Use DocumentSheet for a printable quotation, invoice, contract, or statement. It presents an A4 sheet on screen and removes toolbar, shadow, and outer spacing in print. Use [Table]/[ProTable] for standalone data; DocumentSheet is the formal paper container around document sections.

Import

ts
import { DocumentSheet, DocumentSheetHeader, DocumentSheetSection, DocumentSheetFooter, DocumentSheetSignature } from "@hulianui/ui"

Props

DocumentSheet inherits HTMLAttributes<HTMLDivElement>:

NameTypeDefaultDescription
size"a4" | "auto""a4"Fixed 210 mm sheet or responsive container width.
printablebooleantrueShows the built-in print action.
classNamestring-Sheet class name.

Events

EventTypeDescription
onPrint() => voidPrint action; omission calls window.print().

Slots

SlotTypeDescription
toolbarReactNodeContent above the sheet, hidden when printing.
children*ReactNodeSheet content, usually composed from the provided subcomponents.

DocumentSheetSection accepts title?: ReactNode and children. DocumentSheetSignature accepts label?: ReactNode and lineWidth?: number | string, defaulting to "11rem". Header and Footer are layout containers forwarding div props.

Example

tsx
<DocumentSheet size="a4" className="text-sm">
  <DocumentSheetHeader>
    <div className="text-lg font-bold">Hulian Design Studio</div>
    <div className="text-right text-xl font-bold">QUOTATION</div>
  </DocumentSheetHeader>

  <DocumentSheetSection title="Service details">
    <table className="w-full">{/* detail rows */}</table>
  </DocumentSheetSection>

  <DocumentSheetFooter>
    <div className="flex items-end justify-between gap-8">
      <p className="text-xs">Note: This quotation is valid for 30 days.</p>
      <DocumentSheetSignature label="Authorized representative" />
    </div>
  </DocumentSheetFooter>
</DocumentSheet>

Usage notes

  • Print isolation uses print:hidden and data-document-sheet. Add print:hidden to custom floating controls that should not appear on paper.
  • Dark mode uses near-black paper. Use foreground and muted tokens instead of hard-coded dark text.
  • The built-in action text is Chinese "\u6253\u5370", meaning “Print.”

Related

Table · Book3D · ProTable · PricingTable · JsonViewer · EditableTable

Playground

Hulian Design Studio
No. 88, Road, District, Shanghai
contact@hulian.design · 021-8888-8888
Quote
Order number: QT-2026-0604
Date: 2026-06-04

To

XX Technology Co., Ltd.
Manager Zhang · Purchasing Department

Service details

ProjectQuantityUnit priceSubtotal
Brand official website homepage design1¥12,000¥12,000
Component library customization (20 pieces)20¥800¥16,000
Front-end image cutting implementation1¥8,000¥8,000
Total (tax included)¥36,000

Note: The quotation is valid for 30 days and will be activated within 5 working days after payment is received.

Authorized representative (signature)
<DocumentSheet size="a4" onPrint={() => window.print()}>
  <DocumentSheetHeader>
    <div>Hulian Design Studio</div>
    <div>Quotation · QT-2026-0604</div>
  </DocumentSheetHeader>
  <DocumentSheetSection title="Service Details">
    <table>{/* Detail line */}</table>
  </DocumentSheetSection>
  <DocumentSheetFooter>Total·Signature Position</DocumentSheetFooter>
</DocumentSheet>
PreviousQueueLaneData DisplayNextNovel reader

On this page

  • Usage
  • Documentation
    • When to use
    • Import
    • Props
    • Events
    • Slots
    • Example
    • Usage notes
    • Related
  • Playground