generated from nl-design-system/example
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
closes #479 --------- Co-authored-by: Sjimmie <[email protected]> Co-authored-by: Adham AboHasson <[email protected]>
- Loading branch information
1 parent
596e827
commit 20fe189
Showing
3 changed files
with
58 additions
and
33 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,3 @@ | ||
<!-- @license CC0-1.0 --> | ||
|
||
# Rijkshuisstijl Community action group component |
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,49 @@ | ||
import { Meta, StoryObj } from '@storybook/react/*'; | ||
import { ButtonGroup as ActionGroup } from '@utrecht/component-library-react'; | ||
import { Button } from '@utrecht/component-library-react/dist/css-module'; | ||
import readme from './action-group.md?raw'; | ||
const meta = { | ||
title: 'Rijkshuisstijl/ActionGroup', | ||
id: 'rijkshuisstijl-action-group', | ||
component: ActionGroup, | ||
argTypes: { | ||
direction: { | ||
description: 'Layout of the button group', | ||
control: 'select', | ||
options: ['column', 'row'], | ||
}, | ||
}, | ||
tags: ['autodocs'], | ||
parameters: { | ||
docs: { | ||
description: { | ||
component: readme, | ||
}, | ||
}, | ||
}, | ||
} as Meta<typeof ActionGroup>; | ||
|
||
export default meta; | ||
|
||
type Story = StoryObj<typeof ActionGroup>; | ||
|
||
export const Default: Story = { | ||
args: { | ||
children: [ | ||
<Button appearance="primary-action-button">Save and continue</Button>, | ||
<Button appearance="secondary-action-button">Back</Button>, | ||
], | ||
}, | ||
name: 'Default', | ||
}; | ||
|
||
export const Column: Story = { | ||
args: { | ||
direction: 'column', | ||
children: [ | ||
<Button appearance="primary-action-button">Save and continue</Button>, | ||
<Button appearance="secondary-action-button">Back</Button>, | ||
], | ||
}, | ||
name: 'Column', | ||
}; |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.