ui
ui copied to clipboard
Change position for sidebar to left or right directly with true option
I was thinking of an idea and I wanted to know if this idea makes sense - I could change the sidebar position to the left or right directly with the option true?
source-code
function App() {
const [opened, setOpened] = useState(false)
return (
<Main>
<Button mode="strong" onClick={() => setOpened(true)}>
Open the panel
</Button>
<SidePanel title="Panel title" left="true" opened={opened}>
Sidepanel content goes here.
</SidePanel>
</Main>
)
}
this is interesting?
Thanks for opening your first issue in aragonUI! Someone will circle back soon âš¡
Hi welcome.
Thanks for opening your first issue in aragonUI! Someone will circle back soon âš¡
thank you for feedback.