From 30cba4a23f1642f59322cd6f8523c18db4e0e75d Mon Sep 17 00:00:00 2001 From: Icaro Ryan Souza Date: Wed, 7 Aug 2024 11:44:16 -0400 Subject: [PATCH] Add docs for visibility control for `tabs` and `tab` --- docs/3.0/tabs.md | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) diff --git a/docs/3.0/tabs.md b/docs/3.0/tabs.md index 83ec11fe..a97cd9c7 100644 --- a/docs/3.0/tabs.md +++ b/docs/3.0/tabs.md @@ -75,3 +75,40 @@ end ## Display counter indicator on tabs switcher Check [this recipe](guides/tabs-counter-indicator.html) on how to enhance your tabs switcher with a counter for each association tab. + +## Visibility control + + + +Both `tabs` and individual `tab` components support a `visible` option that allows you to dynamically control their visibility based on certain conditions. For example, you might want to hide a tab if the user doesn't have the necessary permissions to view its content. + + +