Spectrum 2 is now available! Check out the migration docs.

Footer

Footer represents a footer within a Spectrum container.

installyarn add @adobe/react-spectrum
added3.0.0
usageimport {Footer} from '@adobe/react-spectrum'

Example#


<Footer>&copy; All rights reserved.</Footer>
<Footer>&copy; All rights reserved.</Footer>
<Footer>
  &copy; All rights
  reserved.
</Footer>

Content#


The Footer component represents a footer within a Spectrum container such as a Dialog. Footer provides no specific styling by itself, but receives styling from the parent container. In addition, Footer will be automatically placed within the container's layout according to Spectrum guidelines.

See Dialog for examples of how to use the Footer component in the context of a Spectrum container. See MDN for more information about the semantics of the footer element.

Props#


NameTypeDescription
childrenReactNodeFooter content.
Layout
NameTypeDescription
flexResponsive<stringnumberboolean>

When used in a flex layout, specifies how the element will grow or shrink to fit the space available. See MDN.

flexGrowResponsive<number>

When used in a flex layout, specifies how the element will grow to fit the space available. See MDN.

flexShrinkResponsive<number>

When used in a flex layout, specifies how the element will shrink to fit the space available. See MDN.

flexBasisResponsive<numberstring>

When used in a flex layout, specifies the initial main size of the element. See MDN.

alignSelfResponsive<'auto''normal''start''end''center''flex-start''flex-end''self-start''self-end''stretch'>

Overrides the alignItems property of a flex or grid container. See MDN.

justifySelfResponsive<'auto''normal''start''end''flex-start''flex-end''self-start''self-end''center''left''right''stretch'>

Specifies how the element is justified inside a flex or grid container. See MDN.

orderResponsive<number>

The layout order for the element within a flex or grid container. See MDN.

gridAreaResponsive<string>

When used in a grid layout, specifies the named grid area that the element should be placed in within the grid. See MDN.

gridColumnResponsive<string>

When used in a grid layout, specifies the column the element should be placed in within the grid. See MDN.

gridRowResponsive<string>

When used in a grid layout, specifies the row the element should be placed in within the grid. See MDN.