Theme

npm_versionnpm Paragon package page

A layout utility for the common use case of aligning buttons, links or text in a row in a control bar or nav.

ActionRow assumes that its last child is the primary action and lays out actions so that the last item is in a primary location. If horizontal, the primary action sits on the right. If stacked, the primary action sits at the top of the stack (this is done via flex-direction: column-reverse;).

Basic Usage

Any Paragon component or export may be added to the code example.

Usage with a Spacer

ActionRow can also be used with a helper component ActionRow.Spacer to insert empty space between children

Any Paragon component or export may be added to the code example.

Stacked Usage

Any Paragon component or export may be added to the code example.

Theme Variables (SCSS)#

$action-row-gap-x: .5rem !default;
$action-row-gap-y: .5rem !default;

Props API#

ActionRow Props API
  • as elementType

    Specifies the base element

    Default'div'
  • className string

    Specifies class name to append to the base element

  • children node

    Specifies the contents of the row

    Defaultnull
  • isStacked bool

    Specifies whether row should be displayed horizontally

    Defaultfalse
ActionRowSpacer Props API
This component does not receive any props.

Usage Insights#

ActionRow

Project NameParagon VersionInstance Count
frontend-app-account22.9.05
frontend-app-admin-portal21.13.150
frontend-app-authn22.10.02
frontend-app-communications22.7.02
frontend-app-course-authoring22.8.172
ora_settings22.8.11
proctoring22.8.11
xpert_unit_summary22.8.11
frontend-app-discussions22.7.03
frontend-app-ecommerce20.46.31
frontend-app-enterprise-public-catalog21.13.12
frontend-app-gradebook22.8.11
frontend-app-learner-dashboard22.9.08
frontend-app-learner-portal-enterprise21.13.119
frontend-app-learner-record22.10.02
frontend-app-learning22.8.14
frontend-app-library-authoring21.11.314
frontend-app-ora-grading21.11.34
frontend-app-payment22.9.01
frontend-app-publisher21.13.11
frontend-app-support-tools21.13.125
frontend-component-header-edx21.13.11
frontend-component-header22.10.01
frontend-lib-special-exams22.7.01
prospectus20.46.22

ActionRowSpacer

Project NameParagon VersionInstance Count
frontend-app-admin-portal21.13.111
frontend-app-course-authoring22.8.131
frontend-app-learner-portal-enterprise21.13.14
frontend-app-learner-record22.10.01
frontend-app-learning22.8.11
frontend-app-library-authoring21.11.37
frontend-app-support-tools21.13.15
frontend-component-header-edx21.13.12
frontend-component-header22.10.02