0.13.8 • Published 4 years ago

rt-styled-components v0.13.8

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

How to develop

if you would like to add new component or see the demonstration for every comopnent, run a single command:

yarn start

publish your module of new version to private npm

npm publish

if you get any problem, please refer to its documentation:

https://verdaccio.org/docs/en/installation

https://docs.npmjs.com/cli/publish


StyledButton

PROPS & METHODS

Prop nameTypeDefaultDescription
children
classNameString"styled-button"any string you put will be concatenate with old class names. example: "primary", "success", "warning", "info", "danger", "submit", "cancel"
disabledBooleanfalsedisable button or not
onClickFunctionnoopbutton click handler

StyledWarningMsg

PROPS & METHODS

Prop nameTypeDefaultDescription
classNameString"styled-warning-msg"any string you put will be concatenate with old class names
contentString""any content you would like to show

StyledIconWrap

PROPS & METHODS

Prop nameTypeDefaultDescription
children
classNameString"styled-icon-wrap"any string you put will be concatenate with old class names.
onClickFunctionnoopclick handler

StyledRule

PROPS & METHODS

Prop nameTypeDefaultDescription
classNameString"styled-rule"any string you put will be concatenate with old class names
customIconComponentClass or Function""class or function component for showing your icon
ruleString""any rule you want to show

StyledUploadMediaRules

PROPS & METHODS

Prop nameTypeDefaultDescription
classNameString"styled-upload-media-rules"any string you put will be concatenate with old class names
fileTypeStringimage"image" or "video"
isNeedLimitFileSizeBooleantrueif you set true to this prop, then it will show the warn ing message when the uploaded file size over the limitation of file size you gived
fileSizeLimitNumber3the limitation of file size (MB)
acceptedImageFileExtensionListListyou can decide what file types are acceptable
customIconComponentClass or Function""class or function component for showing your icon
customRulesListListany extra rules you would like to show

StyledInput

PROPS & METHODS

Prop nameTypeDefaultDescription
classNameString"styled-input"any string you put will be concatenate with old class names.
isFilteringBooleanfalseyou can swith input field to normal or filtering mode
disabledBooleanfalse
autoFocusBooleanfalse
placeholderString""
valueString""
onChangeFunctionnoop
onBlurFunctionnoop
onKeyDownFunctionnoop

0.13.8

4 years ago

0.13.6

5 years ago

0.13.5

5 years ago

0.13.4

5 years ago

0.13.3

5 years ago