app/helpers/components/sheet_helper.rb in shadcn-ui-0.0.2 vs app/helpers/components/sheet_helper.rb in shadcn-ui-0.0.3
- old
+ new
@@ -15,6 +15,15 @@
end
def sheet_content(&block)
content_for :sheet_content, capture(&block), flush: true
end
+
+ def direction_class(direction)
+ mappings = {
+ "left": 'left-0',
+ "right": 'right-0'
+ }
+
+ mappings[direction.to_sym]
+ end
end