useTabs

useTabs provides automatic binding for component Tabs, which can reduce the amount of repetitive code and improve the development experience. Using this hooks behaves the same as if you had added React.useState manually.

General

Control components with Hooks.

Preview
See code
stateless
extensible
HTTP is stateless, but not sessionless.

APIs

useTabs

type useTabs = (initialValue: string) => {
  state: string
  setState: Dispatch<SetStateAction<string>>
  currentRef: MutableRefObject<string>
  bindings: {
    value: string
    onChange: (val: string) => void
  }
}
Edit this page on GitHub

Previous

useScale

Next

useTheme

MADE & DESIGNED WITHBY BRUNO ANDRADE
docs background gradient blue
docs background gradient violet