Skip to main content

Tabs API Overview

Initialization

import { Tabs } from "@svar-ui/react-core";

const tabs = [
{ id: 0, label: "Info", icon: "wxi-alert" },
{ id: 1, label: "About" },
{ id: 2, label: "Contact" }
];

// minimal configuration for initialization
export default function App() {
return <Tabs options={tabs} />;
}
tip
  • Visit the Features Guide to learn more about the control's functionality.
  • Explore the samples to visualize the available features.

Tabs Properties

optionsOptional. Specifies an array of options that will be used as tabs
typeOptional. Sets the position of the Tabs control
valueOptional. Sets the selected tab

Tabs Events

changeFires when a new tab is selected in the control