aragon / ui

🦚 UI kit for decentralized apps
https://ui.aragon.org/
MIT License
343 stars 127 forks source link

Change position for sidebar to left or right directly with true option #894

Closed ghost closed 1 year ago

ghost commented 1 year ago

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?

welcome[bot] commented 1 year ago

Thanks for opening your first issue in aragonUI! Someone will circle back soon âš¡

ghost commented 1 year ago

Hi welcome.

Thanks for opening your first issue in aragonUI! Someone will circle back soon âš¡

thank you for feedback.