npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

mui-fast-start

v0.3.5

Published

Fast and easy-to-use MUI components for React

Downloads

255

Readme

Mui Fast Start

한국어 (Korean)

This library is built on MUI and React, and is licensed under the MIT License.

It was developed for rapid development, aiming to reduce repetitive or similar code patterns.

Example

Usage

This library extends the props of MUI/React components. You can use the original props along with the additional props defined by mui-fast-start.

For example, if MUI's TextField is used like this:

import TextField from '@mui/material/TextField';

<TextField 
    id="outlined-basic" 
    label="Outlined" 
    variant="outlined" 
/>

With mui-fast-start's extended props (get, set), you can use it as follows while maintaining the original props syntax:

import { SingleText } from "mui-fast-start";

<SingleText
    id="outlined-basic" 
    label="Outlined" 
    variant="outlined"
    get={text} set={setText}
/>

Doc

FastStartProvider

A Provider that defines default props to inject. Priority order is default values > createDefaultProps > component props. If no props are specified, the props defined here will be applied globally.

This component has MUI's ThemeProvider built-in, so be careful not to use ThemeProvider again.

Example:

import {createTheme, CssBaseline} from "@mui/material";
import { createMfsProps } from 'mui-fast-start/styles';
import { FastStartProvider } from 'mui-fast-start';

const theme = createTheme();
const mfsProps = createMfsProps({
    Single: {
        MfsText: {
            maxLength: 255
        }
    },
    Object: {
        MfsText: {
            maxLength: 255
        }
    }
});

<FastStartProvider
    defaultProps={mfsProps}
    theme={theme}
    defaultMode='dark'
>
    <CssBaseline/>
    <StrictMode>
        <App/>
    </StrictMode>
</FastStartProvider>

Single

Single components are used with a single useState.

In MUI, you would originally create value and onChange functions like this:

MUI Example

import React, { useState } from "react";
import TextField from '@mui/material/TextField';

const [text, setText] = useState<string>('');

const handleTextChange = (e: React.ChangeEvent<HTMLInputElement>) => {
    setText(e.target.value);
}

<TextField 
    fullWidth={true}
    autoComplete="off"
    size="small"
    variant="outlined" 
    label="Text"
    value={text}
    onChange={handleTextChange}
    slotProps={{
        htmlInput: {
            maxLength: 10,
        }
    }}
/>

mui-fast-start Example

import { SingleText } from "mui-fast-start";

const [text, setText] = useState<string>('');

<SingleText
    label='Text'
    maxLength={10}
    get={text} set={setText}
/>

Obj

The name prop is required and values are changed based on the name.

Components that receive an object type, where the object's key is specified as the name prop.

MUI Example

import React, { useState } from "react";
import TextField from '@mui/material/TextField';

type TempType = {
    check1: boolean,
    check2: boolean,
    float: number,
    integer: number,
    tempText: string
}

const [temp, setTemp] = useState<TempType>({
    check1: false,
    check2: false,
    float: 0,
    integer: 0,
    tempText: ''
});

const handleTextChange = (e: React.ChangeEvent<HTMLInputElement>) => {
    setTemp({...temp, tempText: e.target.value});
}

<TextField
    fullWidth={true}
    autoComplete="off"
    size="small"
    variant="outlined" 
    label='Test'
    value={temp.tempText}
    onChange={handleTextChange}
/>

mui-fast-start Example

import React, { useState } from "react";
import { ObjText } from "mui-fast-start";

type TempType = {
    check1: boolean,
    check2: boolean,
    float: number,
    integer: number,
    tempText: string
}

const [temp, setTemp] = useState<TempType>({
    check1: false,
    check2: false,
    float: 0,
    integer: 0,
    tempText: ''
});

<ObjText<TempType>
    label='Text' 
    name='tempText'
    get={temp} 
    set={setTemp}
/>

Props

SingleFloat

Extended props: TextFieldProps

| Name | Type | Default | Description | |:-:|:-:|:-:|:-:| | get | number | (required) | First value of useState | | set | Dispatch<SetStateAction> | (required) | Second value of useState | | label | React.ReactNode | - | Label content | | err | string | - | Error message | | minLength | number | - | Minimum input length | | maxLength | number | - | Maximum input length | | startAdornment | React.ReactNode | - | Start InputAdornment | | endAdornment | React.ReactNode | - | End InputAdornment | | def | number | 0 | Default value when input format is invalid | | min | number | - | Minimum value | | max | number | - | Maximum value | | step | number | 0.01 | Step increment size |

SingleInteger

Extended props: TextFieldProps

| Name | Type | Default | Description | |:-:|:-:|:-:|:-:| | get | number | (required) | First value of useState | | set | Dispatch<SetStateAction> | (required) | Second value of useState | | label | React.ReactNode | - | Label content | | err | string | - | Error message | | minLength | number | - | Minimum input length | | maxLength | number | - | Maximum input length | | startAdornment | React.ReactNode | - | Start InputAdornment | | endAdornment | React.ReactNode | - | End InputAdornment | | def | number | 0 | Default value when input format is invalid | | min | number | - | Minimum value | | max | number | - | Maximum value | | step | number | 1 | Step increment size |

SingleText

Extended props: TextFieldProps

| Name | Type | Default | Description | |:-:|:-:|:-:|:-:| | get | string | (required) | First value of useState | | set | Dispatch<SetStateAction> | (required) | Second value of useState | | label | React.ReactNode | - | Label content | | err | string | - | Error message | | minLength | number | - | Minimum input length | | maxLength | number | - | Maximum input length | | startAdornment | React.ReactNode | - | Start InputAdornment | | endAdornment | React.ReactNode | - | End InputAdornment |

SingleCheckbox

Extended props: CheckboxProps

| Name | Type | Default | Description | |:-:|:-:|:-:|:-:| | get | boolean | (required) | First value of useState | | set | Dispatch<SetStateAction> | (required) | Second value of useState | | label | React.ReactNode | - | Label content |

SingleCheckIcon

Extended props: IconButtonProps

| Name | Type | Default | Description | |:-:|:-:|:-:|:-:| | get | boolean | (required) | First value of useState | | set | Dispatch<SetStateAction> | (required) | Second value of useState | | on | React.ReactNode | (required) | Node displayed when true | | off | React.ReactNode | (required) | Node displayed when false |

SingleSelectOne

Extended props: SingleSelectOne

| Name | Type | Default | Description | |:-:|:-:|:-:|:-:| | get | any | (required) | First value of useState | | set | Dispatch<SetStateAction> | (required) | Second value of useState | | label | React.ReactNode | - | Label content | | err | string | - | Error message | | emptyItem | React.ReactNode | - | Node to display for empty item (allows empty value) | | emptyValue | '' / null / undefined / any | - | Value inserted when empty item is selected | | items | any[] | (required) | Selectable items | | renderMenuItem | (item: any) => React.ReactNode | - | Function to render menu item | | getKey | (item: any) => string | Required if item is not string or number | Function to return unique key for item |

SingleSelectRecord

Extended props: SingleSelectOne

| Name | Type | Default | Description | |:-:|:-:|:-:|:-:| | get | any | (required) | First value of useState | | set | Dispatch<SetStateAction> | (required) | Second value of useState | | label | React.ReactNode | - | Label content | | err | string | - | Error message | | emptyItem | React.ReactNode | - | Node to display for empty item (allows empty value) | | emptyValue | '' / null / undefined / any | - | Value inserted when empty item is selected | | items | any[] | (required) | Selectable items | | renderMenuItem | (item: any) => React.ReactNode | - | Function to render menu item | | getKey | (item: any) => string | Required if item is not string or number | Function to return unique key for item |


ObjNumber

Extended props: TextFieldProps

| Name | Type | Default | Description | |:-:|:-:|:-:|:-:| | get | object | (required) | First value of useState | | set | Dispatch<SetStateAction> | (required) | Second value of useState | | name | string | (required) | Object key name | | label | React.ReactNode | - | Label content | | err | object | - | Error message | | minLength | number | - | Minimum input length | | maxLength | number | - | Maximum input length | | startAdornment | React.ReactNode | - | Start InputAdornment | | endAdornment | React.ReactNode | - | End InputAdornment | | def | number | 0 | Default value when input format is invalid | | min | number | - | Minimum value | | max | number | - | Maximum value | | step | number | 0.01 | Step increment size |

ObjInteger

Extended props: TextFieldProps

| Name | Type | Default | Description | |:-:|:-:|:-:|:-:| | get | object | (required) | First value of useState | | set | Dispatch<SetStateAction> | (required) | Second value of useState | | name | string | (required) | Object key name | | label | React.ReactNode | - | Label content | | err | object | - | Error message | | minLength | number | - | Minimum input length | | maxLength | number | - | Maximum input length | | startAdornment | React.ReactNode | - | Start InputAdornment | | endAdornment | React.ReactNode | - | End InputAdornment | | def | number | 0 | Default value when input format is invalid | | min | number | - | Minimum value | | max | number | - | Maximum value | | step | number | 1 | Step increment size |

ObjText

Extended props: TextFieldProps

| Name | Type | Default | Description | |:-:|:-:|:-:|:-:| | get | object | (required) | First value of useState | | set | Dispatch<SetStateAction> | (required) | Second value of useState | | name | string | (required) | Object key name | | label | React.ReactNode | - | Label content | | err | object | - | Error message | | minLength | number | - | Minimum input length | | maxLength | number | - | Maximum input length | | startAdornment | React.ReactNode | - | Start InputAdornment | | endAdornment | React.ReactNode | - | End InputAdornment |

ObjCheckbox

Extended props: CheckboxProps

| Name | Type | Default | Description | |:-:|:-:|:-:|:-:| | get | object | (required) | First value of useState | | set | Dispatch<SetStateAction> | (required) | Second value of useState | | name | string | (required) | Object key name | | label | React.ReactNode | - | Label content |

ObjCheckIcon

Extended props: IconButtonProps

| Name | Type | Default | Description | |:-:|:-:|:-:|:-:| | get | object | (required) | First value of useState | | set | Dispatch<SetStateAction> | (required) | Second value of useState | | name | string | (required) | Object key name | | on | React.ReactNode | (required) | Node displayed when true | | off | React.ReactNode | (required) | Node displayed when false |

ObjSelectOne

Extended props: ObjSelectOne

| Name | Type | Default | Description | |:-:|:-:|:-:|:-:| | get | object | (required) | First value of useState | | set | Dispatch<SetStateAction> | (required) | Second value of useState | | name | string | (required) | Object key name | | label | React.ReactNode | - | Label content | | err | object | - | Error message | | emptyItem | React.ReactNode | - | Node to display for empty item (allows empty value) | | emptyValue | '' / null / undefined / any | - | Value inserted when empty item is selected | | items | any[] | (required) | Selectable items | | renderMenuItem | (item: any) => React.ReactNode | - | Function to render menu item | | getKey | (item: any) => string | Required if item is not string or number | Function to return unique key for item |

ObjSelectRecord

Extended props: SingleSelectOne

| Name | Type | Default | Description | |:-:|:-:|:-:|:-:| | get | object | (required) | First value of useState | | set | Dispatch<SetStateAction> | (required) | Second value of useState | | name | string | (required) | Object key name | | label | React.ReactNode | - | Label content | | err | object | - | Error message | | emptyItem | React.ReactNode | - | Node to display for empty item (allows empty value) | | emptyValue | '' / null / undefined / any | - | Value inserted when empty item is selected | | items | any[] | (required) | Selectable items | | renderMenuItem | (item: any) => React.ReactNode | - | Function to render menu item | | getKey | (item: any) => string | Required if item is not string or number | Function to return unique key for item |