WingoUI
Buttons & Actions
ButtonButton GroupCopy ButtonDelete ButtonTheme ToggleToggleToggle Group
Inputs
Avatar UploadCalendarCheckboxColor PickerComboboxCron PickerCurrency InputDate PickerDate Range PickerDate Time PickerDuration PickerFile UploadFilter BuilderInputInput GroupListboxMasked InputMention InputMonth PickerMulti SelectNumber InputOTP InputPassword InputPhone InputRadio GroupRatingSearch InputSegmented ControlSelectSignature PadSliderSwitchTag InputTextareaTime Picker
Forms
Address InputCSV ImportFieldForm WizardInline EditInvoice line itemsRich Text Editor
Navigation
Back To TopBounce SidebarBreadcrumbCommand MenuGlobal SearchGooey NavHook SidebarNav MenuNav TabsPaginationProximity SidebarScroll ProgressSidebarStepsTable Of ContentsTabsTopbarUser MenuWorkspace Switcher
Overlays
Alert DialogContext MenuDialogDrawerDropdown MenuFamily DrawerHover CardPopoverSheetShortcuts DialogTooltipTour
Feedback
AlertBannerCookie ConsentEmoji ReactionEmpty StateNotification BellNotification CenterProgressRoute ProgressSkeletonSpinnerToast
Data Display
Approval FlowAvatarBadgeCalendar ViewCode BlockComment ThreadContact cardCountdownDescription ListDiff ViewerFile ListFile managerFolderGanttJSON ViewerKbdLog ViewerMarkdownPresenceSchedulerTagTimelineTree View
Tables & Lists
Audit LogData TableDeal PipelineEditable GridKanbanListMembers tablePermissions MatrixTableTask ListVirtual List
Charts & Stats
Animated CounterArea chartBar chartDonut chartFunnel chartGaugeGitHub ActivityHeatmap calendarLeaderboardLine chartRadial barSparklineStat CardTrackerTrend badge
Layout
AccordionApp ShellCardCollapsibleDetail LayoutEntity HeaderPage HeaderScroll AreaSeparatorSettings LayoutSplit ViewToolbar
Media
Audio PlayerCarouselImage CropperImage LightboxLocation MapQR CodeStep PlayerVideo Player
AI Kit
Agent Status CardChat MessageChat ThreadConversation ListFluid OrbGrid RevealMatrix OrbModel PickerPrompt InputReasoning IndicatorRule BuilderSuggestion ChipsTool Call TimelineUsage MeterVoice InputWorkflow Canvas
Text & Effects
Gravity Letters
Mobile
Action SheetBottom Tab BarFABHaptic ButtonHero HeaderInstall PromptLarge Title HeaderNotification BannerOnboarding CarouselPicker WheelPull To RefreshSlide To ConfirmSticky CTA BarSwipe DeckSwipeable Tabs
Commerce
Cart drawerCategory pickerCheckout stepsCoupon inputFavorite buttonFilter panelListing cardListing gridOrder trackerPricePrice rangePricing tableProduct galleryQuantity stepperReviewsSeller card
Blocks
Admin Dashboard PageAdmin ShellAI Chat PageAutomation Builder PageCheckout PageCRM Contact PageCRM Pipeline PageError PagesInbox PageInvoice PageKPI DashboardListing Detail PageLogin PageMarketplace Home PageMarketplace Search PageMarketplace ShellMobile App HomeOnboarding FlowPost Listing WizardPricing PageRegister PageSettings PageUsers Admin Page
Hooks & Utilities
AI ChatChart kitCommerceDate utilsFile exportFile typesFiltersForm validationHapticsInvoicingMotion presetsNavigationNumber formatRelative timeRomanian locationsSpreadsheetText matchTonesUIProvideruseClipboarduseConsentuseControllableStateuseCooldownuseDebounceuseKeyboardInsetuseLocaleuseLongPressuseMediaControlsuseMediaQueryuseOverflowItemsusePersistedStateuseScrollEdgesuseScrollStateuseSelectionuseShortcutuseStickToBottom
GalleryThemeCredits

Forms

Invoice line items

FormsInvoice line items
Inline EditRich Text Editor
Live props
Behavior
allowCustomProducts
pricesIncludeVat
defaultVatRate
defaultDiscountType
reorderable
minLines1
maxLinesNo limit
name
undoTimeout5000ms
Content
currency
locale
Layout
showDescription
showUnit
showVat
showDiscount
showTotals
totalsPosition
layout
State
readOnly
disabled
Appearance
size
variant
Code
import { InvoiceLineItems } from "@/components/ui/invoice-line-items"

<InvoiceLineItems />
Pro

v1.0.0·Added in 1.0.0

The lines of an invoice, quote or order edited like a small spreadsheet, with VAT per rate computed the way e-Factura checks it.

Type in a product cell to search the catalog by name, SKU or keyword; picking one fills its unit, price and VAT, and typing a new name adds it as free text with the price flagged until you enter one. Tab moves across the cells in reading order, Escape in a number cell puts back the value it had, and an empty cell shows its prompt only on the line you are in. Enter moves to the same cell of the next line; on the last line it walks right through the text cells and adds a line from the last one, and Cmd or Ctrl + Enter adds a line from anywhere in the table. Drag a line by its grip with the mouse, or focus the grip and press Space to lift, the arrows to move, Space to drop and Escape to cancel; Alt + Arrow Up / Down moves the line you are in, and Delete or Backspace on a focused grip removes it. The ⋯ menu duplicates, moves (⌥↑ / ⌥↓ work from any cell) and removes; a removed line leaves an undo row for five seconds, paused while you hover or focus it. The % / lei chip in a discount cell switches the discount type. Totals update on every keystroke: subtotal, discounts, the taxable base, VAT per rate and the grand total, which is announced once your edits settle. Narrower than 768px (or with layout cards) every line is a card: tap it to edit a copy in a bottom sheet (a dialog on desktop) and keep it with Save or Cmd / Ctrl + Enter, while closing the sheet discards the draft; long-press the grip to reorder, use ⋯ for Move up / Move down, and tap the Total row to open the breakdown.

Add to a project

npx wingo-ui@latest add invoice-line-items

Pro item: the CLI needs a Pro account. See plans

Dependencies

@dnd-kit/core@dnd-kit/sortablemotionlucide-reactbadgebuttoncomboboxcurrency-inputdrawerdropdown-menuempty-stateinputnumber-inputsegmented-controlselecttooltipuse-controllable-stateuse-localecommerceinvoicingmotionnumber-formatui-config

Files

  • components/ui/invoice-line-items.tsx

See also

InvoicinglibCommercelibCurrency InputComboboxTableApproval FlowKPI Dashboard
PreviousInline EditNext Rich Text Editor

Tax invoice

Draft

CRP #2026-0412

Tech Solutions SRL · CUI RO12345674 · Cluj-Napoca

IssuedSep 24, 2026
DueOct 24, 2026
Invoice lines
Order#Product or serviceQtyUnitUnit priceVATDiscountTotalActions
1
lei250.00Amount in Romanian lei
lei 5,625.00
2
lei320.00Amount in Romanian lei
lei 1,920.00
3
lei1,500.00Amount in Romanian lei
lei 1,500.00
4
lei64.90Amount in Romanian lei
lei 778.80
4 lines
  • 1.

    25 × lei 250.00VAT 21%-10%

    25 users, October 2026

    lei 5,625.00
  • 2.

    6 × lei 320.00VAT 21%

    On-site sessions at the client's office, Cluj-Napoca

    lei 1,920.00
  • 3.

    1 × lei 1,500.00VAT 21%

    lei 1,500.00
  • 4.

    12 × lei 64.90VAT 11%

    lei 778.80
Subtotal
lei 10,448.80
Line discounts
-lei 625.00
Total excl. VAT
lei 9,823.80
VAT 21% on lei 9,045.00
lei 1,899.45
VAT 11% on lei 778.80
lei 85.67
Total
lei 11,808.92

Narrower than 768px the lines turn into cards with a sheet editor; layout forces the table or the cards.

total lei 11,808.92 · VAT 21% lei 1,899.45 · VAT 11% lei 85.67 · 4 lines · minLines 1 · maxLines ∞ · allowCustomProducts true · defaultDiscountType percent · defaultVatRate 0.21 · undoTimeout 5000ms · layout auto