class Primer::Beta::Popover
By default, the popover renders with absolute positioning, meaning it should usually be wrapped in an element with a relative position in order to be positioned properly. To render the popover with relative positioning, use the relative property.
Use ‘Popover` to bring attention to specific user interface elements, typically to suggest an action or to guide users through a new experience.
def body_component
def body_component Primer::Box.new(**@body_arguments) end
def initialize(**system_arguments)
-
system_arguments
(Hash
) -- <%= link_to_system_arguments_docs %>
def initialize(**system_arguments) @system_arguments = deny_tag_argument(**system_arguments) @system_arguments[:tag] = :div @system_arguments[:classes] = class_names( system_arguments[:classes], "Popover" ) @system_arguments[:position] ||= :relative @system_arguments[:right] = false unless @system_arguments.delete(:right) @system_arguments[:left] = false unless @system_arguments.delete(:left) end
def render?
def render? body.present? end