Summary: Added docs for align-items BASELINE property and yoga node setIsReferenceBaseline property in yoga website Reviewed By: davidaurelio Differential Revision: D13359436 fbshipit-source-id: 34cbb1087c70d44ec6462048cc2a819daf5951e0
33 lines
1.2 KiB
Markdown
33 lines
1.2 KiB
Markdown
---
|
|
path: "/docs/align-items"
|
|
title: "Align Items / Self"
|
|
hasPlayground: true
|
|
---
|
|
|
|
## Align Items
|
|
|
|
Align items describes how to align children along the cross axis of their container.
|
|
Align items is very similar to [`justify content`](/docs/justify-content) but instead of
|
|
applying to the main axis, `align items` applies to the cross axis.
|
|
|
|
**STRETCH (DEFAULT)** Stretch children of a container to match the `height` of the container's cross axis.
|
|
|
|
**FLEX START** Align children of a container to the start of the container's cross axis.
|
|
|
|
**FLEX END** Align children of a container to the end of the container's cross axis.
|
|
|
|
**CENTER** Align children of a container in the center of the container's cross axis.
|
|
|
|
**BASELINE** Align children of a container along a common baseline. Individual children can be set to be the reference baseline for their parents.
|
|
|
|
<controls prop="alignItems"></controls>
|
|
|
|
## Align Self
|
|
|
|
Align self has the same options and effect as `align items` but instead of
|
|
affecting the children within a container, you can apply this property to
|
|
a single child to change its alignment within its parent. `align self`
|
|
overrides any option set by the parent with `align items`.
|
|
|
|
<controls prop="alignSelf"></controls>
|