2.0.0 • Published 2 years ago

salman-sb-demo v2.0.0

Weekly downloads
-
License
MIT
Repository
-
Last release
2 years ago

salman-sb-demo

my aim is to make codding fast and simple....

installation..

   npm i salman-sb-demo

module..

thats all are the module which is exported from this package...

SalmanButton
SalmanCounter
SalmanImageDragDrop
SalmanInput
SalmanTabs
SalmanCountDownTimmer
SalmanCountDownStartEnd

SalmanImageDragDrop

example

<SalmanImageDragDrop
  onChange={file => {
    console.log('file', file);
  }}
/> // on change return file

some of props of SalmanImageDragDrop

  onchange,
  onBlur,
  helperText,
  error = false,
  minHeight,
  height = '204px',

SalmanInput

    <SalmanInput  onChange={} type="text" placeholder={"enter text"} borderRadius="20px">

SalmanInput props

  padding?: string;
  type: string;
  placeholder: string;
  borderRadius: string;
  width?: string;
  and any HTML input element args...

SalmanTabs

Example default

<SalmanTabs
  item={[
    { text: 'Home', icon: <HomeIcon /> }, //Mui icon is used here
    { text: 'About', icon: <HomeIcon /> }, //Mui icon is used here
    { text: 'Contact', icon: <HomeIcon /> }, //Mui icon is used here
  ]}
  {...args}
/>
onChange function return tabs index value that array you passed


some of arguments or props of this module
item, // item is liste this [{text: Home, icon: <HomeIcon>}] in this module is use Material ui Icons
onChange, // this function return a tabs index value
maxWidth = '500px',
fontSize = '22px',
iconSize = '16px',
color = '#707a83',
iconColor,
activecolor = '#353840',
scrollThumbColor,
activeUnderline = true,

SalmanCountDownTimmer

SalmanCountDownTimmer element just have endDateTime props once the current time is equal or greater than endDateTime that you passed it will automatically stop and showing the endText...

//example

<SalmanCountDownTimmer endDateTime={2657092278} />

SalmanCountDownTimmer props

  endDateTime?: string;
  timerEndText?: string;
  endTextSize?: string;
  gap?: number;
  color?: string;
  timeHeadinSize?: string;
  timeTextSize?: string;

SalmanCountDownStartEnd

in SalmanCountDownStartEnd element there is two things startDateTime or endDateTime user should pass start and End DateTime so that if the start DateTime is greater than current time then it shows timerStartText and if start DateTime is less than the current time then there shows counter after if the counter ends then it shows timerEndText automatically...

// example

<SalmanCountDownStartEnd startDateTime={1557092278} endDateTime={2657092278} />

SalmanCountDownTimmer props

  endDateTime?: number | string;
  startDateTime?: number | string;
  timerEndText?: string;
  timerStartText?: string;
  timerStartSize?: string;
  gap?: number;
  color?: string;
  timeHeadinSize?: string;
  timeTextSize?: string;
  timerEndSize?: string;

MSG

Keep working and hardworking to become a successful developer :). if you want any other element or module so please drop tweet and tag me @itsshanshaikh ...

Contributor

Muhammad Salman github muhammadsalman-coder

License

MIT

2.0.0

2 years ago

1.47.0

2 years ago

1.46.0

2 years ago

1.45.0

2 years ago

1.44.0

2 years ago

1.43.0

2 years ago

1.42.0

2 years ago

1.41.0

2 years ago

1.40.0

2 years ago

1.39.0

2 years ago

1.38.0

2 years ago

1.37.0

2 years ago

1.36.0

2 years ago

1.35.0

2 years ago

1.33.0

2 years ago

1.32.0

2 years ago

1.31.0

2 years ago

1.30.0

2 years ago

1.29.0

2 years ago

1.28.0

2 years ago

1.26.0

2 years ago

1.25.0

2 years ago

1.24.0

2 years ago

1.23.0

2 years ago

1.22.0

2 years ago

1.21.0

2 years ago

1.20.0

2 years ago

1.19.0

2 years ago

1.18.0

2 years ago

1.17.0

2 years ago

1.16.0

2 years ago

1.14.0

2 years ago

1.13.0

2 years ago

1.12.0

2 years ago

1.11.0

2 years ago

1.10.0

2 years ago

1.9.0

2 years ago

1.8.0

2 years ago

1.7.0

2 years ago

1.6.0

2 years ago

1.5.0

2 years ago

1.4.0

2 years ago

1.3.0

2 years ago

1.2.0

2 years ago

1.1.0

2 years ago

1.0.0

2 years ago

0.1.0

2 years ago