Bottom
The Bottom component is a structural element designed to act as a wrapper of the bottom section of your page. Typically, the Bottom component is used alongside the Top and Content components to achieve better page structure.
The default use case for the Bottom component is as a bottom level section container.
import Layout from '@components/Layout/Layout/Layout';import Top from '@components/Layout/Top/Top';import Content from '@components/Layout/Content/Content';import Bottom from '@components/Layout/Bottom/Bottom';
const App = () => { return ( <Layout> <Top>Top Menu</Top> <Content>Main Content</Content> <Bottom basis={30} style={{ display: 'flex', flexDirection: 'column'}}>Bottom Section</Bottom> </Layout> );};
export default App;| Prop Name | Type | Default | Description |
|---|---|---|---|
style | JSX.CSSProperties | {} | Inline styles to apply directly to the component’s root element. |
class | string | "" | Additional CSS classes to apply to the component |
ref | HTMLDivElement | undefined | Retrieves the component’s DOM element and assigns it to a variable. |
basis | number | 15% | Sets the flex-basis of the component as a percentage. For example, a value of 30 sets the flex-basis to 30%. |
onAction | Record<string, (scope?: string, ...args: any[]) => void> | undefined | Allows you to add custom navigation action handlers to the component. See the Navigation component documentation for details. |
anchor | string | HTMLElement | undefined | Links navigation to another element. When the anchor element is focused, this component’s actions will execute. Can be a CSS selector or HTMLElement. |
Accessing the HTML element
Section titled “Accessing the HTML element”To access the HTML DOM element of the Bottom component.
- Declare a variable to hold the ref but don’t initialize it with a value
- The declared value should have a type of
HTMLDivElement. - Set the declared variable as the value of the
refprop of theBottomcomponent
Example
Section titled “Example”import Layout from '@components/Layout/Layout/Layout';import Top from '@components/Layout/Top/Top';import Content from '@components/Layout/Content/Content';import Bottom from '@components/Layout/Bottom/Bottom';
const App = () => { let bottomRef!: HTMLDivElement
return ( <Layout> <Top>Top Section</Top> <Content>Main Content</Content> <Bottom ref={bottomRef}>Bottom Section</Bottom> </Layout> );};Now you can access the HTML element of Bottom with bottomRef and make modifications to it if needed.
© 2026 Coherent Labs. All rights reserved.