Action footer component
See original GitHub issueSummary
An action footer is a footer bar that contains commonly used actions in the form of pre-arranged buttons and hyperlinks. It can be used in multiple UI components, such as modal dialog, split views, popovers and cards.
Expected behavior
Should be able to give the component buttons/hyperlinks and specify their layout. If no action is passed in, render empty footer with 10px height
Responsiveness
On large screen size action items are horizontally positioned, while on small size they are stacked
React Props
Prop | Type | Default | Description |
---|---|---|---|
start | node | actions to be displayed at the start side | |
center | node | actions to be displayed in the center | |
end | node | actions to be displayed at the end side |
Themeable styles
background-color border-top
Example
<ActionFooter
start={<Button text='cancel'/>}
end={<div><Button text='save'/> <Button text='next'/></div>}
/>
<ActionFooter center={<a href='google.com'/>} />
Issue Analytics
- State:
- Created 6 years ago
- Comments:17 (14 by maintainers)
Top Results From Across the Web
Lightning Component Using QuickAction with Custom Header ...
In this blog post , i explained brief about Quick action in lightning components with an example. force:lightningQuickAction. force: ...
Read more >Add button to the footer of a Lightning Quick Action component
As you said, you need either to put the button inside your component with force:lightningQuickAction , or recreate everything in a component ......
Read more >Format Lightning Component Quick action with Custom ...
I have implemented force:QuickActionWithoutHeader because I need to have custom "save" and "cancel" buttons. However, the modal that pops up for ...
Read more >Custom Header and Footer in Lightning Quick action
In this blog i am going to show you how you can create your custom header and footer in lightning quick action.
Read more >Footer on Lightning Web Component - Picchiri
Practical example of how to build a footer in Lightning Web Component and inserting a call to action within it.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@dm123455 using
start/end
is within the consideration of bidi. Most of our style names and components are following this convention, such as arrange, slidepanel, dynamic-gridtalked with UX/Brett in UX sync, the content passed in the footer will take care of the spacing between buttons itself and action footer is unopinionated on it