0.2.6 • Published 2 years ago

@logo-rn/logo-segment-tab v0.2.6

Weekly downloads
-
License
See license in LI...
Repository
-
Last release
2 years ago

@logo-rn/logo-segment-tab

can be used to select options, switch views or sort elements.

npm version

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)} />

For more detailed information, please visit:

Logo Elements Documentation ↗