Skip to content

Commit

Permalink
docs: make dir and lang explicit requirements for heading
Browse files Browse the repository at this point in the history
  • Loading branch information
Robbert authored and matijs committed Dec 6, 2024
1 parent 34ea5ca commit 3bde243
Showing 1 changed file with 18 additions and 2 deletions.
20 changes: 18 additions & 2 deletions packages/storybook-test/stories/heading/heading.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,15 @@ const meta = {
table: { category: 'API' },
},
children: { table: { category: 'API' } },
dir: {
control: { type: 'select' },
options: [undefined, 'auto', 'ltr', 'rtl'],
table: { category: 'API' },
},
lang: {
control: { type: 'text' },
table: { category: 'API' },
},
level: {
control: { type: 'select' },
options: [1, 2, 3, 4, 5, 6],
Expand Down Expand Up @@ -87,10 +96,17 @@ export const HeadingLevel1Arabic: Story = {
name: 'Heading 1 (Arabic)',
args: {
children: 'مثال',
dir: 'rtl',
lang: 'ar',
level: 1,
},
globals: {
lang: 'ar',
parameters: {
docs: {
description: {
story:
'Het moet mogelijk zijn een andere taal en tekstrichting in te stellen voor een heading, met het `lang` en `dir` attribuut. Bijvoorbeeld de taal Arabisch met `lang="ar"` en de right-to-left textrichting (`dir="rtl"`)',
},
},
},
parameters: {
status: { type: [] },
Expand Down

0 comments on commit 3bde243

Please sign in to comment.