Skip to content

Commit beea824

Browse files
committed
[tabs] Fix vertical-pill-tabs
1 parent 97ab10c commit beea824

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,12 @@
22

33
> Committed but unreleased changes are put here, at the top. Older releases are detailed chronologically below.
44
5+
## 2.26.1 (2025-05-30)
6+
7+
#### Fixed
8+
9+
- `vertical-pill-tabs`
10+
511
## 2.26.0 (2025-05-30)
612

713
#### Added

src/re_com/pill_tabs.cljs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,12 +32,13 @@
3232
(remove (comp #{:parts} :name) horizontal-tabs/args-desc)
3333
vec
3434
(conj
35+
{:name :vertical? :type "boolean" :default false}
3536
{:name :parts :required false :type "map" :validate-fn (v/parts? part-names) :description "See Parts section below."}))))
3637

3738

3839
(defn pill-tabs [& {:keys [theme pre-theme]}]
3940
(let [theme (theme/comp theme pre-theme)]
40-
(fn [& {:keys [model tabs on-change id-fn label-fn disabled? tab-type]
41+
(fn [& {:keys [model tabs on-change id-fn label-fn disabled? tab-type vertical?]
4142
:or {id-fn :id
4243
label-fn :label
4344
tab-type :horizontal}
@@ -54,6 +55,7 @@
5455
:post-props (-> (select-keys props [:class :style :attr])
5556
(update :attr (merge (debug/->attr props))))
5657
:props {:on-change on-change
58+
:vertical? vertical?
5759
:tab-type tab-type
5860
:re-com {:state {:enable (not disabled?)}}
5961
:tag :ul

0 commit comments

Comments
 (0)