Skip to content

Commit 7ecd459

Browse files
authored
Add documentation for outline on View Style Props page (#4480)
* Add documentation for outline on View Style Props page * Add more description to outline props * Add documentation to 0.77 version * Remove filter link change * Address comments * Add changes from 0.77 to current
1 parent 7e0dfa8 commit 7ecd459

File tree

2 files changed

+116
-0
lines changed

2 files changed

+116
-0
lines changed

docs/view-style-props.md

Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -371,6 +371,64 @@ The following filter functions work on Android only:
371371
| ------ |
372372
| number |
373373

374+
---
375+
376+
### `outlineColor`
377+
378+
:::note
379+
`outlineColor` is only available on the [New Architecture](/architecture/landing-page)
380+
:::
381+
382+
Sets the color of an element's outline. See [web documentation](https://developer.mozilla.org/en-US/docs/Web/CSS/outline-color) for more details.
383+
384+
| Type |
385+
| ------------------ |
386+
| [color](colors.md) |
387+
388+
---
389+
390+
### `outlineOffset`
391+
392+
:::note
393+
`outlineOffset` is only available on the [New Architecture](/architecture/landing-page)
394+
:::
395+
396+
Sets the amount of space between an outline and the bounds of an element. Does not affect layout. See [web documentation](https://developer.mozilla.org/en-US/docs/Web/CSS/outline-offset) for more details.
397+
398+
| Type |
399+
| ------ |
400+
| number |
401+
402+
---
403+
404+
### `outlineStyle`
405+
406+
:::note
407+
`outlineStyle` is only available on the [New Architecture](/architecture/landing-page)
408+
:::
409+
410+
Sets the style of an element's outline. See [web documentation](https://developer.mozilla.org/en-US/docs/Web/CSS/outline-style) for more details.
411+
412+
| Type |
413+
| --------------------------------------- |
414+
| enum(`'solid'`, `'dotted'`, `'dashed'`) |
415+
416+
---
417+
418+
### `outlineWidth`
419+
420+
:::note
421+
`outlineWidth` is only available on the [New Architecture](/architecture/landing-page)
422+
:::
423+
424+
The width of an outline which is drawn around an element, outside the border. Does not affect layout. See [web documentation](https://developer.mozilla.org/en-US/docs/Web/CSS/outline-width) for more details.
425+
426+
| Type |
427+
| ------ |
428+
| number |
429+
430+
---
431+
374432
### `pointerEvents`
375433

376434
Controls whether the `View` can be the target of touch events.

website/versioned_docs/version-0.77/view-style-props.md

Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -371,6 +371,64 @@ The following filter functions work on Android only:
371371
| ------ |
372372
| number |
373373

374+
---
375+
376+
### `outlineColor`
377+
378+
:::note
379+
`outlineColor` is only available on the [New Architecture](/architecture/landing-page)
380+
:::
381+
382+
Sets the color of an element's outline. See [web documentation](https://developer.mozilla.org/en-US/docs/Web/CSS/outline-color) for more details.
383+
384+
| Type |
385+
| ------------------ |
386+
| [color](colors.md) |
387+
388+
---
389+
390+
### `outlineOffset`
391+
392+
:::note
393+
`outlineOffset` is only available on the [New Architecture](/architecture/landing-page)
394+
:::
395+
396+
Sets the amount of space between an outline and the bounds of an element. Does not affect layout. See [web documentation](https://developer.mozilla.org/en-US/docs/Web/CSS/outline-offset) for more details.
397+
398+
| Type |
399+
| ------ |
400+
| number |
401+
402+
---
403+
404+
### `outlineStyle`
405+
406+
:::note
407+
`outlineStyle` is only available on the [New Architecture](/architecture/landing-page)
408+
:::
409+
410+
Sets the style of an element's outline. See [web documentation](https://developer.mozilla.org/en-US/docs/Web/CSS/outline-style) for more details.
411+
412+
| Type |
413+
| --------------------------------------- |
414+
| enum(`'solid'`, `'dotted'`, `'dashed'`) |
415+
416+
---
417+
418+
### `outlineWidth`
419+
420+
:::note
421+
`outlineWidth` is only available on the [New Architecture](/architecture/landing-page)
422+
:::
423+
424+
The width of an outline which is drawn around an element, outside the border. Does not affect layout. See [web documentation](https://developer.mozilla.org/en-US/docs/Web/CSS/outline-width) for more details.
425+
426+
| Type |
427+
| ------ |
428+
| number |
429+
430+
---
431+
374432
### `pointerEvents`
375433

376434
Controls whether the `View` can be the target of touch events.

0 commit comments

Comments
 (0)