More Premium Hugo Themes Premium React Themes

Smores React

Marshmallow React components

Smores React

Marshmallow React components

Github Stars Github Stars: 41
Last Commit Last Commit: Dec 18, 2025 -
First Commit Created: Apr 29, 2023 -
Smores React screenshot

Overview

Smores React is a collection of React components that adhere to Marshmallow’s Design System - “S’mores”.

Features

  • Collection of React components
  • Adheres to Marshmallow’s Design System - “S’mores”
  • Components include Accordion, ActionDropdown, Box, Button, Card, CheckBox, CheckBoxGroup, Datepicker, Dropdown, Emoji, Icon, IconWrapper, LabelledText, Loader, Message (deprecated - use Support Message instead), Modal, NumberInput, RadioButton, Row, SearchInput, SupportMessage, Tag, Text, Textarea, TextInput, and Toggle.

Installation

Before starting, ensure that CHANGELOG.md is updated according to Keep a Changelog with the latest release notes. If not, make a pull request updating it before continuing.

  1. Checkout a new branch from the main branch.
  2. Update the Changelog and bump the project version according to semver.org.
  3. Create a pull request.
  4. Once merged, go to the main branch, pull, and push the new tag to origin.
  5. Wait for the build to be successful in GitHub Actions workflow.
  6. Login and publish to NPM.

Running Smores in dev mode: To run Smores in dev mode, follow the below instructions on installing and using Yalc to link up your project repo with Smores.

  1. Install yalc on a global level by running:

    npm install -g yalc
    

    This only needs to be installed once.

  2. Make desired changes in the Smores repo.

  3. On your Smores branch, run:

    npm run build
    

    This will copy all the files that should be published into a remote NPM registry.

  4. In your project repo (not Smores), run:

    yalc add @mrshmllw/smores-react
    

    This will copy the current version from the store to your project’s .yalc folder and inject a file: .yalc/@mrshmllw/smores-react dependency into package.json.

  5. Every time you make changes in Smores and you want to see it locally, run:

    npm run build
    yalc publish
    
  6. In your project folder, run the following to see the changes:

    yalc link @mrshmllw/smores-react
    
  7. When you have finished development, run the following in your project folder to remove all linked packages:

    yalc remove @mrshmllw/smores-react
    

Summary

Smores React is a collection of React components that adhere to Marshmallow’s Design System. It provides a range of components including Accordion, Button, Card, Checkbox, Datepicker, Dropdown, Emoji, Icon, Loader, Modal, RadioButton, SearchInput, Tag, Text, Textarea, Toggle, and more. It also provides a guide on how to install and use these components in development mode.