Skip to content

Commit

Permalink
Add mobile overrides story
Browse files Browse the repository at this point in the history
  • Loading branch information
ahosgood committed Oct 27, 2023
1 parent 9f07548 commit ef6deda
Showing 1 changed file with 13 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import { customViewports } from "../../../../../.storybook/viewports";

const argTypes = {};

export default {
Expand All @@ -20,3 +22,14 @@ const Template = () => {

export const Margin = Template.bind({});
Margin.args = {};

export const MarginMobile = Template.bind({});
MarginMobile.parameters = {
viewport: {
defaultViewport: "small",
},
chromatic: {
viewports: [customViewports["small"].styles.width.replace(/px$/, "")],
},
};
MarginMobile.args = {};

0 comments on commit ef6deda

Please sign in to comment.