@logo-rn/logo-segment-tab
v0.2.6
Published
<LogoSegmentTab/> can be used to select options, switch views or sort elements.
Downloads
17
Readme
@logo-rn/logo-segment-tab
can be used to select options, switch views or sort elements.
Installation
Install the component:
npm i @logo-rn/logo-segment-tab -s
Usage
Once installed, import the component in your application:
import {LogoSegmentTab} from '@logo-rn/logo-segment-tab';
const segmentTabOptions = [
{ value: "Tab1", label: "Label1" },
{ value: "Tab2", label: "Label2" },
]
const [inputType, setInputType] = React.useState(segmentTabOptions[0]);
//..
<LogoSegmentTab
options={segmentTabOptions}
onChange={(value: string) => setInputType(value)} />