Sha256: de63fea3edffec064cfc29eba9dbd9e0fb5a56eeef220372920931bd5ccef9cf
Contents?: true
Size: 1.39 KB
Versions: 3
Compression:
Stored size: 1.39 KB
Contents
<%= render_component_header title: "Popover", description: "Displays rich content in a portal, triggered by a button." %> <% content_for :preview, flush: true do %> <%= render_popover do %> <%= popover_trigger do %> <%= render_button "Open Popover", variant: :outline %> <% end %> <%= popover_content do %> <div class="grid gap-4"> <div class="space-y-2"> <h4 class="font-medium leading-none">Dimensions</h4> <p class="text-sm text-muted-foreground">Set the dimensions for the layer.</p> </div> <div class="grid gap-2"> <div class="grid grid-cols-3 items-center gap-4"> <label class="text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70" for="width">Width</label><input class="flex w-full rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 col-span-2 h-8" id="width" value="100%"> </div> </div> </div> <% end %> <% end %> <% end %> <% content_for :code, flush: true do %> <% end %> <%= render_preview %>
Version data entries
3 entries across 3 versions & 1 rubygems