Skip to main content

Link

Usage

View Docs
function LinkUsage() {
return (
<View>
<Link
title="View Docs"
href="https://docs-react-native-blossom-ui.vercel.app/"
/>
</View>
)
}

With Text

Explore
Documentation
of Blossom UI
Don't have an account?
Create Account
Click here
to view more
function LinkWithText() {
return (
<View>
<Link
leftText="Explore"
title="Documentation"
rightText="of Blossom UI"
href="https://docs-react-native-blossom-ui.vercel.app/"
/>
<Link
leftText="Don't have an account?"
title="Create Account"
href="https://google.com"
/>
<Link
title="Click here"
rightText="to view more"
href="https://google.com"
/>
</View>
)
}

Custom

Awesome
Blossom UI
Library
function LinkCustom() {
return (
<View>
<Link
leftText={<Text status="warning">Awesome </Text>}
rightText={<Text status="success">Library</Text>}
title="Blossom UI "
href="https://docs-react-native-blossom-ui.vercel.app/"
style={{
color: 'blue',
}}
/>
</View>
)
}

Props

PropData TypeDefault ValueDescription
ExtendsTextProps--Inherits properties from TextProps
leftTextReactNode--Set the left side of the textIf string will be passed a space delimiter will be added automatically at the end
rightTextReactNode--Set the right side of the textIf string will be passed a space delimiter will be added automatically at the start
titlestring--Set the link label to show
styleStyleProp<TextStyle>--Set the link label style
hrefstring--Set the href url for link
containerStyleStyleProp<ViewStyle>--Container style for the link
onLinkOpenError(error: unknown) => void--Callback for when the given link can't be opened
typographyTypographyOptionsb3Modify the font size/weight values using this- h1-h6 are used for headings - s1-s3 are used for subheadings - b1-b3 are used for body text - l1-l3 are used for labels - c1-c3 are used for captions