-
Notifications
You must be signed in to change notification settings - Fork 42
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Justering av eksempler på Button (#2559)
- Loading branch information
1 parent
f9276ba
commit f278588
Showing
8 changed files
with
113 additions
and
89 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
import { Button, HStack, VStack } from "@navikt/ds-react"; | ||
import { withDsExample } from "@/web/examples/withDsExample"; | ||
|
||
const Example = () => { | ||
return ( | ||
<VStack gap="6" align="center"> | ||
<HStack gap="2"> | ||
<Button variant="primary">Primary</Button> | ||
<Button variant="secondary">Secondary</Button> | ||
<Button variant="tertiary">Tertiary</Button> | ||
</HStack> | ||
<HStack gap="2"> | ||
<Button variant="primary" size="small"> | ||
Primary | ||
</Button> | ||
<Button variant="secondary" size="small"> | ||
Secondary | ||
</Button> | ||
<Button variant="tertiary" size="small"> | ||
Tertiary | ||
</Button> | ||
</HStack> | ||
<HStack gap="2"> | ||
<Button variant="primary" size="xsmall"> | ||
Primary | ||
</Button> | ||
<Button variant="secondary" size="xsmall"> | ||
Secondary | ||
</Button> | ||
<Button variant="tertiary" size="xsmall"> | ||
Tertiary | ||
</Button> | ||
</HStack> | ||
</VStack> | ||
); | ||
}; | ||
|
||
// EXAMPLES DO NOT INCLUDE CONTENT BELOW THIS LINE | ||
export default withDsExample(Example); | ||
|
||
/* Storybook story */ | ||
export const Demo = { | ||
render: Example, | ||
}; | ||
|
||
export const args = { | ||
index: 0, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.