Skip to content
WingoUI
ComponentsTemplatesDocsPricingAI agentsBlogChangelogContact
Components
Buttons & Actions
ButtonButton GroupCopy ButtonDelete ButtonTheme ToggleToggleToggle Group
Inputs
Avatar UploadCalendarCheckboxColor PickerComboboxCountry SelectCron PickerCurrency InputDate PickerDate Range PickerDate Time PickerDuration PickerEmail InputEmoji PickerFile UploadFilter BuilderInputInput GroupListboxMasked InputMention InputMonth PickerMulti SelectNumber InputOTP InputPassword InputPhone InputRadio GroupRatingSearch InputSegmented ControlSelectSignature PadSliderSwitchTag InputTextareaTime PickerTimezone SelectTree Select
Forms
Address InputBooking WidgetCSV ImportFieldForm WizardInline EditInvoice line itemsRich Text EditorSchema Builder
Navigation
Back To TopBounce SidebarBreadcrumbCommand MenuGlobal SearchGooey NavHook SidebarNav MenuNav TabsPaginationProximity SidebarScroll ProgressSidebarStepsTable Of ContentsTabsTopbarUser MenuWorkspace Switcher
Overlays
Alert DialogContext MenuDialogDrawerDropdown MenuFamily DrawerHover CardPopoverShare DialogSheetShortcuts DialogTooltipTour
Feedback
AlertBannerCookie ConsentEmoji ReactionEmpty StateNotification BellNotification CenterProgressRoute ProgressSetup ChecklistSkeletonSpinnerToast
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 chartRadar chartRadial barSparklineStat CardTrackerTrend badge
Layout
AccordionApp ShellCardCollapsibleDetail LayoutEntity HeaderPage HeaderScroll AreaSeparatorSettings LayoutSplit ViewToolbar
Media
Audio PlayerCarouselCSV ViewerDOCX EditorDOCX ViewerExcel ViewerFile SystemImage compareImage CropperImage GalleryImage LightboxLocation MapPDF ViewerPowerPoint ViewerQR CodeStep PlayerVideo Player
AI Kit
Agent Status CardChat MessageChat ThreadChat WidgetConversation ListFluid OrbGrid RevealMatrix OrbModel PickerPrompt InputReasoning IndicatorRule BuilderSuggestion ChipsTool Call TimelineUsage MeterVoice InputWorkflow Canvas
Text & Effects
Background PatternGravity LettersMarqueeTerminalText AnimateText Rotate
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
Marketing Sections
App Download SectionBlog Cards SectionCTA SectionFAQ SectionFeature GridFeature ShowcaseHero SectionIntegrations SectionLogo CloudMarketing FooterMarketing HeaderMarketing SectionNewsletter SectionPricing SectionStats SectionSteps SectionTeam SectionTestimonials SectionTimeline SectionVideo Section
Blocks
Admin Dashboard PageAdmin ShellAI Chat PageAPI Keys PageAutomation Builder PageCheckout PageCRM Contact PageCRM Pipeline PageError PagesInbox PageInvoice PageKPI DashboardListing Detail PageLogin PageMarketplace Home PageMarketplace Search PageMarketplace ShellMobile App HomeOnboarding FlowOrder History PagePost Listing WizardPricing PageProfile PageRegister PageSettings PageUsers Admin Page
Templates
About PageAcademy PageAccessibility PageAffiliate PageAgency PageAI Product PageAppointment Booking PageBlog PageBlog Post PageBug Bounty PageCareers PageChangelog PageCommunity PageCompare PageContact PageCustomer Story PageCustomers PageDemo Booking PageDevelopers PageDocs Home PageDownload PageEnterprise PageEvents PageExperts PageFAQ PageFeature PageGlossary PageHelp Article PageHelp Center PageHome Services PageImpact PageIntegration Detail PageIntegrations PageJob Detail PageLanding PageLaunch PageLegal PageManifesto PagePortfolio PagePress PageProduct Tour PagePromo PageReal Estate PageReferral PageResearch Report PageRestaurant PageRoadmap PageROI Calculator PageSecurity PageSolutions PageStartups PageStatus PageStorefront PageSwitch PageTemplate Gallery PageTravel PageWaitlist PageYear in Review Page
Hooks & Utilities
AI ChatChart kitCommerceDate utilsFile exportFile typesFiltersForm validationHapticsInvoicingMotion presetsNavigationNumber formatRelative timeRomanian locationsSpreadsheetText matchTonesUIProvideruseClipboarduseConsentuseControllableStateuseCooldownuseDebounceuseKeyboardInsetuseLocaleuseLongPressuseMediaControlsuseMediaQueryuseOverflowItemsusePersistedStateuseScrollEdgesuseScrollStateuseSelectionuseShortcutuseStickToBottom
GalleryTheme

Navigation

Back To Top

Navigation

Back To Top React component for Tailwind CSS v4

Schema BuilderBounce Sidebar
Live props
Behavior
threshold400
showOn
smooth
Appearance
progress
variant
tone
color
size
radius
Content
label
showLabel
Layout
position
side
offset16
Code
import { BackToTop } from "@/components/ui/back-to-top"

<BackToTop />
  1. Home
  2. Components
  3. Navigation
  4. Back To Top
Pro

Back To Top React component for Tailwind CSS v4

v1.0.0·Added in 1.0.0

A React back to top button that appears on long pages, rings with your reading progress and takes you, and your focus, back up.

Scroll past the threshold and the button pops in on a quick spring, a thin ring around it filling as you read. Click or tap it to glide back to the top; once the scroll settles, focus moves to the page title so keyboard and screen reader users land there too (scroll away mid-way and focus stays put). Tab to it for a focus ring outside the progress ring, and press Enter or Space. With showOn="scroll-up" it stays out of the way while you read down and comes back the moment you flick up. On a phone it is 48px, sits above the bottom tab bar and clears the home indicator. Under reduced motion it only fades and the jump is instant.

Back To Top is a Pro React component in the React navigation components category, written in TypeScript for React 19 and Tailwind CSS v4. It installs as source with npx wingo-ui@latest add back-to-top, together with Button, useScrollState, Motion presets, Tones and UIProvider and the npm packages motion and lucide-react.

Add to a project

Requirements: React 19 and Tailwind CSS v4, in Next.js (App Router or Pages), Vite or React Router. Installation guide · Next.js setup · Vite setup

npx wingo-ui@latest add back-to-top

Back To Top is part of Pro, with 298 more Pro items: $8 a month or $150 once. 14-day refund before you download any Pro item. See plans

Usage

Import BackToTop from @/components/ui/back-to-top.

import type { ReactNode } from "react"
import { BackToTop } from "@/components/ui/back-to-top"

export function GhidEFactura({ children }: { children: ReactNode }) {
  return (
    <main>
      <h1>Guide: send your first invoice in 12 steps</h1>
      {children}
      <BackToTop label="Back to the top" showOn="scroll-up" />
    </main>
  )
}

Props

  • thresholddefault 400
    number

    Pixels scrolled before it appears. 0 shows it on any scroll. Content shorter than this never shows it.

  • showOndefault "scroll"
    "scroll" | "scroll-up"

    scroll: whenever you are past the threshold. scroll-up: only while scrolling up past it (and at the very end), out of the way while reading down, like Safari's toolbars. The recommendation for phones.

  • progressdefault true
    boolean

    A 2px ring around the button that fills with reading progress, from 12 o'clock. It follows the scroll every frame without re-rendering.

  • variantdefault "surface"
    "surface" | "solid" | "glass"

    surface: the popover surface with a floating shadow, readable over anything. solid: filled with the tone. glass: a translucent blurred surface for photo-heavy pages.

  • tonedefault "neutral"
    "neutral" | "brand" | "success" | "warning" | "danger" | "info"

    Colors the progress ring, and the fill of the solid variant.

  • colordefault ""
    string

    Any CSS color. Replaces the tone for the ring and the solid fill. Leave empty to use the tone.

  • sizedefault "md"
    "sm" | "md" | "lg"

    40 / 48 / 56px. A floating button never drops below 44px on touch screens, so sm grows to 44px there.

  • radiusdefault "full"
    "md" | "lg" | "full"

    Corner shape, scaled with the size like the button's. The progress ring follows it.

  • labeldefault "Back to top"
    string

    The accessible name, and the text of the extended pill when showLabel is on.

  • showLabeldefault false
    boolean

    An extended pill with the label beside the arrow, instead of an icon-only button.

  • icon
    ReactNode

    Replaces the default ArrowUp icon. It nudges up 2px on hover with a mouse.

  • positiondefault "fixed"
    "fixed" | "sticky" | "absolute"

    fixed: pinned to the viewport. sticky: render it as the last child of a scroll container and it pins to that container's bottom (panels, cards, demos). absolute: inside a positioned parent.

  • sidedefault "end"
    "end" | "start" | "center"

    Logical side, so end is on the left in right-to-left layouts.

  • offsetdefault 16
    number

    Pixels from the edges. Added to the bottom safe area and to --bottom-bar-offset, which a bottom tab bar sets.

  • smoothdefault true
    boolean

    Smooth scroll back to the top. Always instant when the user prefers reduced motion. The demo's readout shows it.

  • focusTargetdefault "h1"
    string | HTMLElement | null

    Gets focus once the scroll settles: a selector looked up inside the scroll container, or an element. Falls back to the container, then the body; elements that are not focusable get a temporary tabindex. If you scroll away before the top is reached, focus stays put. null leaves focus alone.

  • scrollTarget
    HTMLElement | Window | RefObject<HTMLElement | null> | null

    What scrolls. Default: the nearest ScrollContainerProvider, else (sticky and absolute) the nearest scrolling ancestor, else the window.

  • onClick
    (event: MouseEvent<HTMLButtonElement>) => void

    Runs before scrolling. Call event.preventDefault() to cancel the scroll.

  • classNames
    Partial<Record<"button" | "ring" | "icon" | "label", string>>

    Extra classes for the inner parts.

  • className
    string

    Extra classes for the positioned wrapper. Other props go to it too.

Examples

Extended pill

showLabel with a short custom label: "Top" next to the arrow.

Only when scrolling up

showOn="scroll-up" keeps it out of the way while reading down, like Safari's toolbars. The phone recommendation.

Variants over photos

surface, solid and glass, each readable over any content.

Sizes and radii

40 / 48 / 56px with md, lg and full corners. The ring follows the shape.

Brand ring

tone="brand" on a marketing page, with a custom icon and label.

Above a bottom tab bar

--bottom-bar-offset from the tab bar lifts the button above it, no props needed.

Dependencies

motionlucide-reactbuttonuse-scroll-statemotiontonesui-config

Files

  • components/ui/back-to-top.tsx

FAQ

Is the React Back To Top component free?

The preview, props and docs are free; copying the source needs a Pro plan. See plans.

How do I install Back To Top?

Run npx wingo-ui@latest add back-to-top. It also adds the Wingo UI items it builds on (Button, useScrollState, Motion presets, Tones and UIProvider) and the npm packages motion and lucide-react. With shadcn, add the @wingo-ui registry with your API key, then run npx shadcn@latest add @wingo-ui/back-to-top.

How does Back To Top behave on phones?

On a phone it is 48px, sits above the bottom tab bar and clears the home indicator.

See also

useScrollStatehookScroll ProgressTable Of ContentsFABButton

More React navigation components

Command MenuGlobal SearchNav TabsPaginationStepsTabs
All 19 React navigation components
PreviousSchema BuilderNext Bounce Sidebar
SSummit CRM / Help / Guides0px/400px· smooth

Guides · Invoicing

Guide: send your first invoice in 12 steps

6 min read · updated Sep 23, 2026

1. Check what you need to send

Every invoice you send a business client needs a unique number, the date, both company names and addresses, the line items and the amount due. Summit CRM fills most of it for you.

2. Connect your payment account

Link your bank account or Stripe once, in Settings › Payments. Approval usually takes a day, and Summit CRM only asks for access with your consent.

3. Fill in your company details

In Settings › Billing add your tax ID, your office address, your bank details and the invoice series. The default series is SUM, numbered from 0001.

4. Add the client

Search the client by name or tax ID and the details fill in from your contacts. For Northwind Tech Inc. (San Francisco, EIN 94-1234567) you also see the current balance, $12,480.00.

5. Create the invoice

Pick the products or services, the quantities and the tax rate. The totals update as you type, rounded to the cent.

6. Check the totals

Before sending, look over the summary: the amount before tax, the tax for each rate and the total due.

ItemAmount
Summit CRM Pro license, 12 months$4,800.00
Setup and data import$3,200.00
Team training (hours) × 8$2,000.00
Sales tax 8%$800.00
Total due$10,800.00

7. Send it

Press Send invoice. The invoice gets a number and its status moves to “Sent”. You can close the page, delivery continues in the background.

8. Track delivery

Within minutes the status turns “Delivered” or “Bounced”. If it bounces you see the exact reason, for example a wrong email address.

9. Download the PDF

The signed PDF is your record of the invoice. Summit CRM keeps it for 7 years, as most tax rules require.

10. Get paid

The client gets an email with the PDF and a payment link. When the money arrives, the invoice marks itself as paid.

11. Correct an invoice

A sent invoice is never deleted: issue a credit note for the full amount, then a new, correct invoice.

12. Automate it

For subscriptions, set up monthly recurring invoices. They are issued and sent on the first day of the month, without a click.

Need help? Write to support@summitcrm.com.

Scroll the guide: the ring fills as you read. Press the button and focus lands on the title.