0.0.2 • Published 8 months ago

@licuido-ui/ui_radio-button v0.0.2

Weekly downloads
-
License
MIT
Repository
-
Last release
8 months ago

RadioButton

Radio buttons when the user needs to see all available options. If available options can be collapsed, consider using a Select component because it uses less space.

Radio buttons should have the most commonly used option selected by default.

Author

Link

Story Book Link RadioButton

PlayGround

Try it have a fun codeBox

Installation

npm i @licuido-ui/ui_radio-button

Import component

import { RadioButton } from '@licuido-ui/ui_radio-button';

Usage

<RadioButton label={'input'} value={''} />

Image

alt text

Sample Code

<RadioButton
  id={'radio'}
  label={'Radio button label'}
  labelPlacement={'end'}
  icon={undefined}
  checkedIcon={undefined}
  checked={true}
  disabled={false}
  radioBtnSize={30}
  defaultBtnColor={'#D3D3D3'}
  activeBtnColor={'#665CD7'}
  labelFontColor={'#262626'}
  labelFontSize={'14px'}
  labelRootStyle={{}}
  handleChange={() => false}
  SecondaryColor={'#b2b1fa'}
/>

Props

NameDescriptionDefaultControl
classNamestringstringSet string
idstringstringstring
rootButtonIdstringstringstring
sxSxProps<Theme>-Set object
labelstring"Radio button label"-
value*any-Set object
iconReactNode-Set object
checkedIconReactNode-Set object
checkedbooleanfalseSet boolean
disabledbooleanfalseSet boolean
radioBtnSizenumber30Set number
defaultBtnColorstring"#D3D3D3"linear-gradient(rgba(255,0,0,0), rgba(255,0,0,1));
activeBtnColorstring"#665CD7"linear-gradient(rgba(255,0,0,0), rgba(255,0,0,1));
buttonRootStyle*SxProps<{}>-Set object
handleChange() => void() => false-
labelRootStyleSxProps<{}>{ }Set object
labelFontColorstring"#262626"linear-gradient(rgba(255,0,0,0), rgba(255,0,0,1));
labelFontSizestring or number14pxSet object
labelPlacement"bottom" or "top" or "end" or "start""end"start