Skip to content

Commit

Permalink
Merge branch 'main' into implement-theme-ui
Browse files Browse the repository at this point in the history
  • Loading branch information
patcon committed Oct 16, 2024
2 parents d021613 + 498b791 commit cf75781
Showing 1 changed file with 18 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -84,13 +84,27 @@ export default {
}
}

const StickToBottom = ({ children }) => (
<div style={{
position: "fixed",
width: "100%",
bottom: 0,
left: 0,
}}>
<div style={{
// Match storybook viewport margin.
margin: 16,
}}>
{children}
</div>
</div>
)

const Template = (args) => {
// TODO: Figure out how to make this sticky at the bottom
return <div style={{
maxWidth: "608px",
}}>
return <StickToBottom>
<SelectionWidgetV2 {...args} />
</div>
</StickToBottom>
}

export const Interactive = Template.bind({})
Expand Down

0 comments on commit cf75781

Please sign in to comment.