From 9ba008b17b3817dafa73d64aa8162a686e4c20ca Mon Sep 17 00:00:00 2001 From: Kimo Knowles Date: Sat, 20 Jul 2024 21:05:22 +0200 Subject: [PATCH] [dropdown] Update docs --- src/re_com/dropdown.cljs | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/re_com/dropdown.cljs b/src/re_com/dropdown.cljs index 0949d241..ad3ccb68 100644 --- a/src/re_com/dropdown.cljs +++ b/src/re_com/dropdown.cljs @@ -122,8 +122,13 @@ :type "boolean | r/atom"} {:name :direction :required false - :default :best - :type ":up | :down | :toward-center"} + :default :toward-center + :type "keyword" + :description [:span "Determines how to position the " + [:code ":body"] " part. " [:code ":toward-center"] + " dynamically re-positions it, while " + [:code ":up"] " and " [:code ":down"] + " force it toward a static direction."]} {:default 0 :description "component's tabindex. A value of -1 removes from order" :name :tab-index