Skip to content

Commit fa64b69

Browse files
committed
add sidebar separator component
1 parent eca5186 commit fa64b69

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# frozen_string_literal: true
2+
3+
module RubyUI
4+
class SidebarSeparator < Base
5+
def view_template(&)
6+
Separator(**attrs, &)
7+
end
8+
9+
private
10+
11+
def default_attrs
12+
{
13+
class: "mx-2 w-auto bg-sidebar-border",
14+
data: {
15+
sidebar: "separator"
16+
}
17+
}
18+
end
19+
end
20+
end

0 commit comments

Comments
 (0)