Heading composes
so one can use all the style props to render headlines.
function Example() {
return <Heading>I'm a Heading</Heading>;
}
import { Heading } from 'native-base';
function Example() {
return <Heading>I'm a Heading</Heading>;
}
function Example() {
return <VStack space={1} alignItems="center">
<Heading size="xs">xs</Heading>
<Heading size="sm">sm</Heading>
<Heading size="md">md</Heading>
<Heading size="lg">lg</Heading>
<Heading size="xl">xl</Heading>
<Heading size="2xl">2xl</Heading>
<Heading size="3xl">3xl</Heading>
<Heading size="4xl">4xl</Heading>
</VStack>;
}
function Example() {
return <Heading isTruncated>
NativeBase is a simple, modular and accessible component library that
gives you building blocks to build you React applications.
</Heading>;
}
function Example() {
return <Heading size="lg" fontSize={50} bold>
How are you?
</Heading>;
}
function Example() {
return <Box>
<Heading size="xl" mb="4">
Heading
</Heading>
<Text fontSize="xl">
Headings are used for rendering headlines. Heading composes Text so you
can use all the style props.
</Text>
</Box>;
}
Heading implements
,
,
,
,
,
,
,
,
NativeBase ships with a default theme for each component. Check out the default theme of the heading
.
Info:
We can easily extend the heading component theme using extendTheme function as described in the documentation .