SGUI / Development
Link
Native external navigation and host adapter routing for internal links.
Loading examples…
Loading examples…
Examples
Loading examples…
Component documentation
SGUI / Development
Native external navigation and host adapter routing for internal links.
Loading examples…
Loading examples…
Loading examples…
Native external navigation and host adapter routing for internal links.
'use client';
import { useState } from 'react';
import { ThemeScope } from '@structured-growth/sg-ui/theme';
import { Link, Stack, Typography, Button } from '@structured-growth/sg-ui/experimental';
export default function LinkPlaygroundExample() {
const [action, setAction] = useState("No action yet");
const [open, setOpen] = useState(false);
const [page, setPage] = useState(0);
const [pageSize, setPageSize] = useState(25);
const [selected, setSelected] = useState("overview");
return (
<>
<ThemeScope density="comfortable">
<Link href="https://example.com/docs" external underline={"hover"} tone={"primary"} target={false ? "_blank" : "_self"}>{"Read the installation guide"}</Link>
</ThemeScope>
</>
);
}
The same props in independent density scopes.
'use client';
import { useState } from 'react';
import { ThemeScope } from '@structured-growth/sg-ui/theme';
import { Link, Stack, Typography, Button } from '@structured-growth/sg-ui/experimental';
export default function LinkPlaygroundDensitiesExample() {
const [action, setAction] = useState("No action yet");
const [open, setOpen] = useState(false);
const [page, setPage] = useState(0);
const [pageSize, setPageSize] = useState(25);
const [selected, setSelected] = useState("overview");
return (
<>
<Stack gap={3}>
<ThemeScope density="compact"><Link href="https://example.com/docs" external underline={"hover"} tone={"primary"} target={false ? "_blank" : "_self"}>{"Read the installation guide"}</Link></ThemeScope>
<ThemeScope density="comfortable"><Link href="https://example.com/docs" external underline={"hover"} tone={"primary"} target={false ? "_blank" : "_self"}>{"Read the installation guide"}</Link></ThemeScope>
</Stack>
</>
);
}