Skip to content

Commit

Permalink
docs: add options config property
Browse files Browse the repository at this point in the history
  • Loading branch information
kinghat committed Oct 5, 2022
1 parent 5b64508 commit 45f2ee3
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,19 @@ tabs:
You can apply global and per tab configuration to your card. Global configuration(top level properties) are expressed on all tabs in your card. You can also set local configuration, per tab styles and attributes that take precedence over any corresponding global configuration.
### **Options**
| Property | Default | Description |
| ----------------- | ------- | ------------------------------ |
| `defaultTabIndex` | `0` | tab to display on first render |

```yaml
type: custom:tabbed-card
options:
defaultTabIndex: 1 # in a 0 based index, the second tab would be the active tab on render
tabs: ...
```

### **Styling**

This card tries to closely match home assistants default tab styles. You can override and apply additional styling to the card via provided material web components custom properties.
Expand Down

0 comments on commit 45f2ee3

Please sign in to comment.