Renders pane footer at the bottom of the <Pane>
-component containing a form.
The component itself only sets up the styling of the footer and the contents (renderStart
and renderEnd
props) are completely up to the developer.
import { Pane, PaneFooter } from '@folio/stripes/components';
const footer = (
<PaneFooter
renderStart={<Button>Cancel</Button>}
renderEnd={<Button>Save</Button>}
className={css.paneFooterClass}
innerClassName={css.paneFooterContentClass}
/>
);
<Pane footer={footer} ... >
Pane Content
</Pane>
The component styling and content are completely up to the developer.
import { Pane, PaneFooter, Button } from '@folio/stripes/components';
const footer = (
<PaneFooter footerClass={css.paneFooter}>
<div className={css.paneFooterContent}>
<Button onClick={() => {...}}>
Cancel
</Button>
<Button
buttonStyle="primary"
type="submit"
>
Save
</Button>
</div>
</PaneFooter>
);
<Pane footer={footer} ... >
Pane Content
</Pane>
Name | type | description | default | required |
---|---|---|---|---|
children | node | |||
className | string | Adds a className to the PaneFooter . Optional. |
||
innerClassName | string | Adds a className to the PaneFooter content. Optional. |
||
renderEnd | node | |||
renderStart | node |