-
Notifications
You must be signed in to change notification settings - Fork 41
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updated documentation for Typography (#2324)
- Loading branch information
Showing
11 changed files
with
219 additions
and
13 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
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,6 @@ | ||
.demo-container { | ||
display: flex; | ||
flex-direction: column; | ||
gap: var(--iui-size-xs); | ||
width: 300px; | ||
} |
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,21 @@ | ||
/*--------------------------------------------------------------------------------------------- | ||
* Copyright (c) Bentley Systems, Incorporated. All rights reserved. | ||
* See LICENSE.md in the project root for license terms and full copyright notice. | ||
*--------------------------------------------------------------------------------------------*/ | ||
import * as React from 'react'; | ||
import { InputGrid, Input, Label, LabeledSelect } from '@itwin/itwinui-react'; | ||
|
||
export default () => { | ||
return ( | ||
<div className='demo-container'> | ||
<InputGrid> | ||
<Label displayStyle='block'>Block label</Label> | ||
<Input /> | ||
</InputGrid> | ||
<InputGrid labelPlacement='inline'> | ||
<Label displayStyle='inline'>Inline label</Label> | ||
<Input /> | ||
</InputGrid> | ||
</div> | ||
); | ||
}; |
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 @@ | ||
.demo-container { | ||
width: 300px; | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
/*--------------------------------------------------------------------------------------------- | ||
* Copyright (c) Bentley Systems, Incorporated. All rights reserved. | ||
* See LICENSE.md in the project root for license terms and full copyright notice. | ||
*--------------------------------------------------------------------------------------------*/ | ||
import * as React from 'react'; | ||
import { Input, Label } from '@itwin/itwinui-react'; | ||
|
||
export default () => { | ||
return ( | ||
<div className='demo-container'> | ||
<Label htmlFor='text-input' required> | ||
Name: | ||
</Label> | ||
<Input id='text-input' placeholder='Enter name' /> | ||
</div> | ||
); | ||
}; |
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,15 @@ | ||
/*--------------------------------------------------------------------------------------------- | ||
* Copyright (c) Bentley Systems, Incorporated. All rights reserved. | ||
* See LICENSE.md in the project root for license terms and full copyright notice. | ||
*--------------------------------------------------------------------------------------------*/ | ||
import * as React from 'react'; | ||
import { Flex, Text } from '@itwin/itwinui-react'; | ||
|
||
export default () => { | ||
return ( | ||
<Flex flexDirection='column'> | ||
<Text>This is a regular text</Text> | ||
<Text isMuted>This is a muted text</Text> | ||
</Flex> | ||
); | ||
}; |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
/*--------------------------------------------------------------------------------------------- | ||
* Copyright (c) Bentley Systems, Incorporated. All rights reserved. | ||
* See LICENSE.md in the project root for license terms and full copyright notice. | ||
*--------------------------------------------------------------------------------------------*/ | ||
import * as React from 'react'; | ||
import { Flex, Text } from '@itwin/itwinui-react'; | ||
|
||
export default () => { | ||
return ( | ||
<Flex flexDirection='column'> | ||
<Text isSkeleton variant='headline'> | ||
This is a skeleton text | ||
</Text> | ||
<Text isSkeleton variant='title'> | ||
This is a skeleton text | ||
</Text> | ||
<Text isSkeleton variant='subheading'> | ||
This is a skeleton text | ||
</Text> | ||
<Text isSkeleton variant='leading'> | ||
This is a skeleton text | ||
</Text> | ||
<Text isSkeleton>This is a skeleton text</Text> | ||
<Text isSkeleton variant='small'> | ||
This is a skeleton text | ||
</Text> | ||
</Flex> | ||
); | ||
}; |
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,19 @@ | ||
/*--------------------------------------------------------------------------------------------- | ||
* Copyright (c) Bentley Systems, Incorporated. All rights reserved. | ||
* See LICENSE.md in the project root for license terms and full copyright notice. | ||
*--------------------------------------------------------------------------------------------*/ | ||
import * as React from 'react'; | ||
import { Flex, Text } from '@itwin/itwinui-react'; | ||
|
||
export default () => { | ||
return ( | ||
<Flex flexDirection='column'> | ||
<Text variant='headline'>This is a headline</Text> | ||
<Text variant='title'>This is a title</Text> | ||
<Text variant='subheading'>This is a subheading</Text> | ||
<Text variant='leading'>This is a leading</Text> | ||
<Text>This is a body</Text> | ||
<Text variant='small'>This is a small text</Text> | ||
</Flex> | ||
); | ||
}; |
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