Skip to content

Commit

Permalink
Add orientation examples
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesplease committed Jun 16, 2021
1 parent 24d0a67 commit 2f8e52c
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions guides/orientation.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,3 +24,31 @@ direction you must write CSS to arrange the list of focus nodes to match that di

The orientation of a focus node cannot be changed once it is set.

## Examples

### Horizontal Orientation

This is a focus node with horizontal orientation.

```js
<FocusNode>
<FocusNode>Child A</FocusNode>
<FocusNode>Child B</FocusNode>
<FocusNode>Child C</FocusNode>
</FocusNode>
```

It's horizontal because the default orientation is horizontal.

### Vertical Orientation

This is a focus node with horizontal orientation.

```js
<FocusNode orientation="vertical">
<FocusNode>Child A</FocusNode>
<FocusNode>Child B</FocusNode>
<FocusNode>Child C</FocusNode>
</FocusNode>
```

0 comments on commit 2f8e52c

Please sign in to comment.