Skip to content

CloseButton

Use close button to render an × without default button styles.
  • Beta
  • Not reviewed for accessibility

Use CloseButton to render an × without default button styles.

Accessibility

CloseButton has a default aria-label of "Close" to provides assistive technologies with an accessible label. You may choose to override this label with something more descriptive via system_arguments.

Arguments

NameTypeDefaultDescription
typeSymbol:buttonOne of :button or :submit.
system_argumentsHashN/ASystem arguments

Examples

Default

<%= render(Primer::Beta::CloseButton.new) %>