React Components

The React snippet collection contains function components and reusable hooks for React 18.

  • Tag input field

    Renders a tag input field.

    React, Components · Nov 25, 2020

  • Tabs

    Renders a tabbed menu and view component.

    React, Components · Oct 13, 2021

  • Modal dialog

    Renders a Modal component, controllable through events.

    React, Components · Oct 13, 2021

  • Stateful checkbox with multiple selection

    Renders a checkbox list that uses a callback function to pass its selected value/values to the parent component.

    React, Components · Oct 13, 2021

  • Expandable object tree view

    Renders a tree view of a JSON object or array with collapsible content.

    React, Components · Nov 16, 2020

  • Collapsible accordion

    Renders an accordion menu with multiple collapsible content elements.

    React, Components · Oct 13, 2021

  • Textarea with word limit

    Renders a textarea component with a word limit.

    React, Components · Oct 13, 2021

  • Closable alert

    Renders an alert component with type prop.

    React, Components · Jan 7, 2021

  • File drag and drop area

    Renders a file drag and drop component for a single file.

    React, Components · Oct 13, 2021

  • Button with ripple effect

    Renders a button that animates a ripple effect when clicked.

    React, Components · Oct 13, 2021

  • Star rating

    Renders a star rating component.

    React, Components · Oct 13, 2021

  • Object table view

    Renders a table with rows dynamically created from an array of objects and a list of property names.

    React, Components · Sep 6, 2020

  • Countdown timer

    Renders a countdown timer that prints a message when it reaches zero.

    React, Components · Oct 13, 2021

  • Carousel

    Renders a carousel component.

    React, Components · Nov 3, 2020

  • Lazy-loading image

    Renders an image that supports lazy loading.

    React, Components · Jul 29, 2022