Class: Shadcn::Command::Preview

Inherits:
ApplicationViewComponentPreview show all
Defined in:
app/components/shadcn/command/preview.rb

Instance Method Summary collapse

Instance Method Details

#defaultObject

Upstream's own example: a palette in a box, with two groups and the shortcuts beside the rows.



8
9
10
# File 'app/components/shadcn/command/preview.rb', line 8

def default
  render_with_template
end

#dialogObject

Upstream's "Dialog": the same list inside a Dialog. The shortcut that opens it is the caller's — data-action on any element, or the Dialog's own trigger.



15
16
17
# File 'app/components/shadcn/command/preview.rb', line 15

def dialog
  render_with_template
end

#rankingObject

What ranking buys, which filtering does not: type "gp" and Group Policy comes first, because a palette answers "what did you mean".



21
22
23
# File 'app/components/shadcn/command/preview.rb', line 21

def ranking
  render_with_template
end