selector
v0.0.9arrow_drop_downv0.0.9
v0.0.8
v0.0.7
v0.0.6
v0.0.4
v0.0.3
v0.0.2
v0.0.1
STATUS
Passing
DOWNLOADS
220
LICENSE
MIT
VISIBILITY
Public
PUBLISHED
2 years ago
SIZE
11 KB
Renders an icon and a text into an `PrimaryButton`.
1 contributor
Like
Install selector as a package?
Copied
npm i @bit/lekanmedia.shared-ui.selector
Set Bit as a scoped registryLearn more
npm config set '@bit:registry' https://node.bit.dev
Component Example 
modifieddraft
modifieddraft
React
React
Vue
Angular
React Native
Add dependency... help_outline
Just
and packages in Bit or NPM to the example. any of the 1 million componentstoggle layout


chevron_left
chevron_right
Selector (
props.className:
string
,props.addClass:
string
,props.width:
number
,props.height:
number
,props.text:
string
,props.textStyle:
object
,props.icon:
string
,props.iconStyle:
object
,props.onClick:
function
,props.onClickIcon:
) : function
JSX.Element
Renders an icon and a text into an PrimaryButton
.
Arguments
props.className:
string
The default class of the button.
props.addClass:
string
Add extra class styles to overwrite default class.
props.width:
number
Width of the button.
props.height:
number
Height of the button.
props.text:
string
Text for the button.
props.textStyle:
object
Style Inline CSS styles for the button text.
props.icon:
string
Google Material Icon for the button.
props.iconStyle:
object
Style Inline CSS styles for icon.
props.onClick:
function
onclick event function of the button.
props.onClickIcon:
function
onclick event function of the icon.
Returns
JSX.Element
A `TextIconButton` with a text and clickable icon.
ActiveSelector (
props.isActive:
) : boolean
JSX.Element
Wraps a Selector
and renders a Spinner
when the Selector
is clicked.
Argument
props.isActive:
boolean
A boolean value to render the Spinner
component.
Returns
JSX.Element
A wrapped Selector Component.