From dc77ac20a3dbcd7e8d4056c4f0ab6f7e0ad3716c Mon Sep 17 00:00:00 2001 From: Alexander Metzger Date: Tue, 3 Oct 2023 23:49:59 -0700 Subject: [PATCH] replicate ui --- gooey_ui/components.py | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/gooey_ui/components.py b/gooey_ui/components.py index e569e4b8d..85806e39d 100644 --- a/gooey_ui/components.py +++ b/gooey_ui/components.py @@ -157,7 +157,16 @@ def controllable_tabs( ) -> tuple[list[state.NestingCtx], int]: index = state.session_state.get(key, 0) for i, label in enumerate(labels): - if button(label, key=f"tab-{i}", type="primary", disabled=i == index): + if button( + label, + key=f"tab-{i}", + type="primary", + className="replicate-nav", + style={ + "background": "black" if i == index else "white", + "color": "white" if i == index else "black", + }, + ): state.session_state[key] = index = i state.experimental_rerun() ctxs = []