UNPKG

wix-style-react

Version:
23 lines (17 loc) 968 B
# Tabs component ## Properties | propName | propType | defaultValue | isRequired | description | |----------|----------|--------------|------------|-------------| | items | array of objects (see item)| - | + | Specifies tabs | | onClick | func | - | + | Callback on tab click, return the item that was clicked | | activeId | string or number | - | - | Id of active tab | | type | string ('compact', 'uniformSide', 'uniformFull') | - | - | Tabs type | | width | string or number | - | - | Set tab width (only for uniformSide type) | | minWidth | string or number | - | - | Override tabs minWidth | | hasDivider | bool | true | - | Controls whether grey divider is visible | ## Item | propName | propType | defaultValue | isRequired | description | |----------|----------|--------------|------------|-------------| | id | string or number| - | + | Specifies the item id | | title | node | - | + | Title to be shown on tab | | dataHook | string | - | - | Datahook |