Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions docs/6.x/docs/components/Appbar/Appbar.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -131,11 +131,11 @@ export default MyComponent;

<div>

### elevated <span class="badge badge-supported "><span class="badge-text">Available in v5.x with theme version 3</span></span>
### elevation

</div>

<PropTable componentLink="Appbar/Appbar" prop="elevated" />
<PropTable componentLink="Appbar/Appbar" prop="elevation" />

<div>

Expand Down
12 changes: 6 additions & 6 deletions docs/6.x/docs/components/Appbar/AppbarHeader.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -82,27 +82,27 @@ export default MyComponent;

<div>

### elevated <span class="badge badge-supported "><span class="badge-text">Available in v5.x with theme version 3</span></span>
### theme

</div>

<PropTable componentLink="Appbar/AppbarHeader" prop="elevated" />
<PropTable componentLink="Appbar/AppbarHeader" prop="theme" />

<div>

### theme
### style

</div>

<PropTable componentLink="Appbar/AppbarHeader" prop="theme" />
<PropTable componentLink="Appbar/AppbarHeader" prop="style" />

<div>

### style
### elevation

</div>

<PropTable componentLink="Appbar/AppbarHeader" prop="style" />
<PropTable componentLink="Appbar/AppbarHeader" prop="elevation" />

<div>

Expand Down
8 changes: 8 additions & 0 deletions docs/6.x/docs/components/Card/Card.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,14 @@ export default MyComponent;

<PropTable componentLink="Card/Card" prop="accessible" />

<div>

### ref

</div>

<PropTable componentLink="Card/Card" prop="ref" />



<span />
Expand Down
8 changes: 8 additions & 0 deletions docs/6.x/docs/components/Chip/Chip.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -268,6 +268,14 @@ export default MyComponent;

<div>

### ref

</div>

<PropTable componentLink="Chip/Chip" prop="ref" />

<div>

### role

</div>
Expand Down
8 changes: 8 additions & 0 deletions docs/6.x/docs/components/Modal.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,14 @@ export default MyComponent;

<div>

### elevation

</div>

<PropTable componentLink="Modal" prop="elevation" />

<div>

### style

</div>
Expand Down
134 changes: 127 additions & 7 deletions docs/6.x/docs/components/Surface.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ import ScreenshotTabs from '@docs/components/ScreenshotTabs.tsx';
import ExtendedExample from '@docs/components/ExtendedExample.tsx';

Surface is a basic container that can give depth to an element with elevation shadow.
On dark theme with `adaptive` mode, surface is constructed by also placing a semi-transparent white overlay over a component surface.
See [Dark Theme](https://callstack.github.io/react-native-paper/docs/guides/theming#dark-theme) for more information.
Overlay and shadow can be applied by specifying the `elevation` property both on Android and iOS.

On Android, Surface uses the native `elevation` style,
and falls back to shadows that approximate the elevation on other platforms.



Expand All @@ -26,7 +26,7 @@ import { Surface, Text } from 'react-native-paper';
import { StyleSheet } from 'react-native';

const MyComponent = () => (
<Surface style={styles.surface} elevation={4}>
<Surface style={styles.surface} elevation={4} borderRadius={8}>
<Text>Surface</Text>
</Surface>
);
Expand All @@ -35,9 +35,9 @@ export default MyComponent;

const styles = StyleSheet.create({
surface: {
padding: 8,
height: 80,
width: 80,
padding: 8,
alignItems: 'center',
justifyContent: 'center',
},
Expand All @@ -52,11 +52,123 @@ const styles = StyleSheet.create({

<div>

### children (required)
### backgroundColor

</div>

<PropTable componentLink="Surface" prop="children" />
<PropTable componentLink="Surface" prop="backgroundColor" />

<div>

### borderRadius

</div>

<PropTable componentLink="Surface" prop="borderRadius" />

<div>

### borderBottomEndRadius

</div>

<PropTable componentLink="Surface" prop="borderBottomEndRadius" />

<div>

### borderBottomLeftRadius

</div>

<PropTable componentLink="Surface" prop="borderBottomLeftRadius" />

<div>

### borderBottomRightRadius

</div>

<PropTable componentLink="Surface" prop="borderBottomRightRadius" />

<div>

### borderBottomStartRadius

</div>

<PropTable componentLink="Surface" prop="borderBottomStartRadius" />

<div>

### borderEndEndRadius

</div>

<PropTable componentLink="Surface" prop="borderEndEndRadius" />

<div>

### borderEndStartRadius

</div>

<PropTable componentLink="Surface" prop="borderEndStartRadius" />

<div>

### borderStartEndRadius

</div>

<PropTable componentLink="Surface" prop="borderStartEndRadius" />

<div>

### borderStartStartRadius

</div>

<PropTable componentLink="Surface" prop="borderStartStartRadius" />

<div>

### borderTopEndRadius

</div>

<PropTable componentLink="Surface" prop="borderTopEndRadius" />

<div>

### borderTopLeftRadius

</div>

<PropTable componentLink="Surface" prop="borderTopLeftRadius" />

<div>

### borderTopRightRadius

</div>

<PropTable componentLink="Surface" prop="borderTopRightRadius" />

<div>

### borderTopStartRadius

</div>

<PropTable componentLink="Surface" prop="borderTopStartRadius" />

<div>

### borderCurve

</div>

<PropTable componentLink="Surface" prop="borderCurve" />

<div>

Expand Down Expand Up @@ -92,6 +204,14 @@ const styles = StyleSheet.create({

<div>

### children (required)

</div>

<PropTable componentLink="Surface" prop="children" />

<div>

### testID

</div>
Expand Down
Loading