New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

fastsh-react-component

Package Overview
Dependencies
Maintainers
0
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fastsh-react-component

Fastsh component library

latest
npmnpm
Version
0.1.3
Version published
Maintainers
0
Created
Source

BootStrap Fast.sh

Available Scripts

In the project directory, you can run:

npm run dev

Runs the app in the development mode.
Open http://localhost:5173 to view it in the browser.

The page will reload if you make edits.

Button Component

<Button>

A customizable button with a label, a background color, an active state and an icon.

<Button
  icon={null}
  isActive
  label="Primary Button"
  onClick={() => {}}
  type={ButtonType.Primary}
/>
PropsDescriptionDefaultType
iconFontAwesome iconDefinition for the button icontrueObject
isActiveIndicates if the button is in an active statetrueBoolean
labelText label displayed on the button""String
onClickFunction triggered on button click() => {}Function
typeStyle type of the button (e.g., Primary, Secondary)ButtonType.PrimaryEnum
  • ButtonType.{options}:

    • Primary
    • Secondary
    • Disabled
    • Outline
    • PanelPrimary
    • PanelSecondary
    • Back
    • Modify
  • Behavior Without type:

    • The button will have no background.
    • The text color will be default to Cerulean.
    • An underline will appear when you hover over the button.

EntityPanel Component

<EntityPanel>

An Entity Panel that contains the User informations.

<EntityPanel
  email="user@example.com"
  username="user"
/>
PropsDescriptionDefaultType
emailEmail of the User""String
usernameUsername of the User""String

TextField Components

An input with an icon on the right.

  • Props:
    • onChange: callback fired when the value is changed.
    • placeholder (optional): Text that appears in the form control when it has no value set.
    • disabled (optional): Whether the form control is disabled (true | false).
    • icon (optional): Display a icon on the right.

Example:

<SearchBar
    onChange='{() => {
      console.log("Changed");
    }}'
    disabled="{false}"
    placeholder="Search"
    icon="{faClose}"
/>

<Input>

An input with a label and a hint.

  • Props:
    • onChange: callback fired when the value is changed.
    • placeholder (optional): Text that appears in the form control when it has no value set.
    • disabled (optional): Whether the form control is disabled (true | false).
    • label (optional): The label that appears above the input.
    • hint (optional): Text that appears below the input.

Example:

<input
    onChange='{() => {
      console.log("Changed");
    }}'
    disabled="{false}"
    placeholder="Search"
    icon="{faClose}"
    label="Email"
    hint="Hint text"
/>

FAQs

Package last updated on 20 Oct 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts