DetailsPanel
Panel for showing additional content on the right side of the page.
#
Documentation
#
#
Usage
#
import { Button } from "@optiaxiom/react";
import {
DetailsPanel,
DetailsPanelBody,
DetailsPanelFooter,
DetailsPanelHeader,
} from "@optiaxiom/react/unstable";
import { Canvas } from "../Canvas";
export function App() {
return (
<Canvas>
<DetailsPanel>
<DetailsPanelHeader>Panel Title</DetailsPanelHeader>
<DetailsPanelBody>This is the details panel body</DetailsPanelBody>
<DetailsPanelFooter>
<Button>Share</Button>
</DetailsPanelFooter>
</DetailsPanel>
</Canvas>
);
}
#
Anatomy
#
import {
DetailsPanel,
DetailsPanelBody,
DetailsPanelFooter,
DetailsPanelHeader,
} from "@optiaxiom/react/unstable";
export default () => (
<DetailsPanel>
<DetailsPanelHeader />
<DetailsPanelBody />
<DetailsPanelFooter />
</DetailsPanel>
);
#
Props
#
#
DetailsPanel
#
Supports all Box props in addition to its own. Renders a <div>
element.
Prop |
---|
asChild Change the default rendered element for the one passed as a child, merging their props and behavior. Read the Composition guide for more details.
|
className
|
#
DetailsPanelHeader
#
Supports all Box props in addition to its own. Renders a <div>
element.
Prop |
---|
addonAfter Display content inside the header after
|
addonBefore Display content inside the header before
|
asChild Change the default rendered element for the one passed as a child, merging their props and behavior. Read the Composition guide for more details.
|
className
|
description Add secondary text after the primary title.
|
#
DetailsPanelBody
#
Supports all Box props in addition to its own. Renders a <div>
element.
Prop |
---|
asChild Change the default rendered element for the one passed as a child, merging their props and behavior. Read the Composition guide for more details.
|
className
|
#
DetailsPanelFooter
#
Supports all Box props in addition to its own. Renders a <div>
element.
Prop |
---|
asChild Change the default rendered element for the one passed as a child, merging their props and behavior. Read the Composition guide for more details.
|
className
|
#
Changelog
#
#
1.6.0
#
- Added component