Skip to content

ISBN Barcode

Pro

The barcode on the back of a book. It shows the ISBN line above the bars and can add a 5-digit price after them.

  • React 19
  • Tailwind CSS 4

Added Nov 11, 2026 · Pro license

Playground

Loading the preview

Props

Needs your Pro API key in GELATIN_UI_PRO_TOKEN. Set it up

Pro itemAPI key required

ISBN Barcode needs a Pro API key

Try the live preview for free. With Pro, the add command above puts the source in your project.

Files it adds
14
More Pro items, one API key
+327
Your coding agent runs it
1 cmd

$79$129once, for life

Already have Pro? Sign in to set up your API key.

Pass the ISBN and, for a shop copy, the price add-on.

book-barcode.tsx

IsbnBarcode

<div>
PropTypeDefaultDescription
aria-labelstring—Defines a string value that labels the current element. The accessible name. Default "<kind>: <text>" ("EAN-13: 5901234123457"); Code 128 and Code 39 say the kind only, or the link, as their value can be a return code or a key.
fitboolean—Fill the width of the parent, in whole px a module when that loses one module of width or less (as the QR Code), else the exact width. Default false: the narrowest bar sets the size (moduleWidth, height, unit).
moduleWidthnumber—The narrowest bar in unit. Default 2 (px). Use whole px on screen. Values under 0.5px or 0.1mm (and 0, or not a number) clamp to them: the layout divides by this width.
heightnumber—The bar height in unit. Default 64 (px). With fit, the height in px.
textPosition"bottom""none"—The human-readable text under the bars. Default bottom.
unit"mm""px"—mm sizes the code for print: moduleWidth={0.33} is EAN-13 at 100%. Default px.
plateboolean—The light plate under the code. Default true.
status"empty""error""loading""ready"—The load state. Default ready. loading: the skeleton while the value is not known yet. empty: the empty box. error shows as ready: the error box is for a value the code cannot hold.
labelsPartial<CodeSymbolLabels>—The texts of the empty and error states.
onError—Runs once for each new error (a wrong check digit, a letter in EAN-13), after commit. It does not run again for the same error, and typed values are deferred: a field that shows the error should derive it from the value with the kind's encoder (cached, so free), not clear it on each change.
valueRequiredstring—The data etiket encodes. The ISBN: 13 digits (978 or 979), or a 10-digit ISBN that becomes 978 with a new check digit. Hyphens and spaces stay in the line above the bars as you write them.
addOnstring—The 5-digit price add-on (EAN-5): the first digit is the currency (5 is USD), "52499" is $24.99.
...props<div> attributes—Every other attribute goes to the <div>, with a ref.
  • Pass 13 digits that start with 978 or 979, with or without hyphens.
  • Pass a 10-digit ISBN and it becomes 978 with a new check digit.
  • Use addOn for the 5-digit price: "52499" is $24.99, "90000" is no price.
  • Use onError to turn a field invalid on a wrong digit.
  • For a product that is not a book, use an EAN-13 Barcode.
  • When the kind of code is known only at run time, use a Barcode.
  • For a link to the book's page that a phone opens, use a QR Code.

It is an image named by its ISBN line ("ISBN 978-0-306-40615-7") by default. Pass aria-label to say what the code is for.

The ISBN also shows as text above and under the bars, unless textPosition="none".

  1. AddedISBN Barcode.
Open the release