Skip to main content

options

Description

specifies an array of options that will be used as tabs

Type

array

Example

<script>
const tabs = [
{ id: 0, label: "Info", icon: "wxi-alert" },
{ id: 1, label: "About" },
{ id: 2, label: "Contact" },
{ id: 3, label: "", icon: "wxi-check" }
];
</script>

<Tabs options={tabs} value={1} />

Details

An object of the options array may have the following properties:

  • id - the id of a tab
  • label - the text of a tab
  • icon - the name of the icon to be used in a tab

Related article: Creating tabs

Related sample: Tabs