5.2.0 • Published 5 months ago

@spark-web/text-link v5.2.0

Weekly downloads
-
License
-
Repository
github
Last release
5 months ago

title: Text Link storybookPath: navigation-textlink--default

isExperimentalPackage: true

NOTE: These components must be nested within a Text or Heading component.

TextLink

Text links take users to another place in the application, and usually appear within or directly following a sentence. Styled to resemble a hyperlink.

<Text>
  This is some text containing a <TextLink href="#">text link</TextLink>
</Text>

Examples

Size

The font-size is inherited from the parent Text component.

<Text size="small">
  A <TextLink href="#">text link</TextLink> inheriting the parent's “small”
  font-size
</Text>

Custom link

This component renders a native anchor element by default, which can be customised via the linkComponent prop on the SparkProvider component.

Props

The TextLink component also extends native HTML a anchor props and are not listed here.

TextLinkButton

Even though it looks like a text link, this is actually a semantic button.

<Text>
  <TextLinkButton>Visually a link, with button semantics</TextLinkButton>
</Text>

Props

The TextLinkButton component also extends native HTML span props and are not listed here.

2.0.0-rc.19

8 months ago

2.0.0-rc.2

8 months ago

2.0.0-rc.3

8 months ago

2.0.0-rc.17

8 months ago

2.0.0-rc.4

8 months ago

2.0.0-rc.18

8 months ago

2.0.0-rc.5

8 months ago

5.2.0

5 months ago

2.0.0-rc.15

8 months ago

5.1.0

5 months ago

5.0.1

5 months ago

2.0.0-rc.16

8 months ago

5.0.0

6 months ago

2.0.0-rc.13

8 months ago

2.0.0-rc.0

8 months ago

2.0.0-rc.14

8 months ago

2.0.0-rc.1

8 months ago

2.0.0-rc.11

8 months ago

2.0.0-rc.12

8 months ago

5.0.0-rc.24

6 months ago

2.0.0-rc.10

8 months ago

5.0.0-rc.25

6 months ago

5.0.0-rc.26

6 months ago

5.0.0-rc.27

6 months ago

5.0.0-rc.28

6 months ago

5.0.0-rc.29

6 months ago

2.0.0-rc.6

8 months ago

2.0.0-rc.7

8 months ago

2.0.0-rc.8

8 months ago

2.0.0-rc.9

8 months ago

5.0.0-rc.31

6 months ago

2.0.0-rc.20

7 months ago

2.0.0-rc.21

7 months ago

1.1.0

2 years ago

1.0.11

3 years ago

1.0.9

3 years ago

1.0.8

3 years ago

1.0.10

3 years ago

1.0.7

3 years ago

1.0.6

3 years ago

1.0.5

3 years ago

1.0.4

3 years ago

1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago