Footer
Display navigation options at the bottom of your page
Use the Footer
component to provide supplementary information and navigation options to users at the bottom of your page. You can also use the Footer
component to display legal and informational notices, social media or external links, contact information, or secondary actions.
Logos
Footers can be created with logos, and also with logos only. To add a logo to your footer, specify the logo
prop. To add a logo only to your footer, omit the columns
prop:
You can specify the url
, alt
, width
, and height
properties of your logo
prop to customize your logo. Footer logos are lazy-loaded by default. To disable lazy loading, set the eager
property to true
. If you don’t want to use an external image, but rather insert the logo into the markup as an SVG, then set the logo.html
property.
Columns
Footers can have multiple columns, and columns can also have titles. To create new columns, simply specify an additional object with the items
property on your columns
array. To add titles to your columns, specify the title
property:
Additional Items
You can display additional elements in your footer by specifying the subText
prop, or passing elements as the children to the component:
API
Prop | Purpose |
---|---|
logo | Sets a logo inside the footer. |
logo.url | Sets the URL for the image. |
logo.alt | Sets an alt tag for the image. |
logo.width | Sets the width of the image. |
logo.height | Sets the height of the image. |
logo.eager | Footer logos are lazy loaded by default. Set eager to true to disable lazy loading. |
logo.html | Use for directly injecting SVG logos into the markup. |
columns | Sets a column of links inside the footer. |
columns.title | Sets a title for the column. |
columns.items | Sets a group of links inside the column. |
columns.items.href | Sets a link for the anchor. |
columns.items.name | Sets the name of the anchor. |
columns.items.active | Sets the anchor as active. Use for current page. |
columns.items.target | Sets the target of the anchor. |
className | Pass additional CSS classes for the footer. |
wrapperClassName | Pass additional CSS classes for the wrapper inside the footer. |
subTextClassName | Pass additional CSS classes for sub text container. |
Request improvement for this page