Repository navigation
Tile and TilePickerItem link form #110
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,51 @@ | ||
| import { Media, Tile } from "@infisical/cipher/ui/item"; | ||
| import { Grid } from "@infisical/cipher/ui/layout"; | ||
|
|
||
| export default function Example() { | ||
| return ( | ||
| <div className="flex w-full min-w-0 flex-col gap-6"> | ||
| <div className="flex w-full min-w-0 flex-col gap-3"> | ||
| <Tile | ||
| href="#/organizations/acme/settings/billing" | ||
| media={<Media icon="folder" />} | ||
| title="Billing" | ||
| description="Plan, invoices and payment method" | ||
| /> | ||
| <Tile | ||
| href="https://infisical.com/docs/documentation/getting-started/introduction" | ||
| external | ||
| media={<Media icon="book-open" />} | ||
| title="Documentation" | ||
| description="Guides and API reference" | ||
| /> | ||
| </div> | ||
| <Grid columns={3} gap={12}> | ||
| <Tile | ||
| layout="stacked" | ||
| href="#/agent-vault/connections/new/github" | ||
| media={<Media icon="git" />} | ||
| eyebrow="Source control" | ||
| title="GitHub" | ||
| description="Repositories, issues and pull requests." | ||
| /> | ||
| <Tile | ||
| layout="stacked" | ||
| href="https://modelcontextprotocol.io/docs/getting-started/intro" | ||
| external | ||
| media={<Media icon="link" />} | ||
| eyebrow="Protocol" | ||
| title="MCP" | ||
| description="Any server that speaks the Model Context Protocol." | ||
| /> | ||
| <Tile | ||
| layout="stacked" | ||
| href="https://infisical.com/docs" | ||
| external | ||
| media={<Media icon="cloud" />} | ||
| title="Custom HTTP" | ||
| description="Any HTTP API, with headers and auth you define." | ||
| /> | ||
| </Grid> | ||
| </div> | ||
| ); | ||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,50 @@ | ||
| import { TilePicker, type TilePickerItem } from "@infisical/cipher/patterns/tile-picker"; | ||
|
|
||
| const services: TilePickerItem[] = [ | ||
| { | ||
| value: "github", | ||
| title: "GitHub", | ||
| description: "Repositories, issues and pull requests.", | ||
| eyebrow: "Source control", | ||
| icon: "git", | ||
| href: "#/agent-vault/connections/new/github", | ||
| popular: true | ||
| }, | ||
| { | ||
| value: "linear", | ||
| title: "Linear", | ||
| description: "Issues, projects and cycles.", | ||
| eyebrow: "Project management", | ||
| icon: "folder", | ||
| href: "#/agent-vault/connections/new/linear" | ||
| }, | ||
| { | ||
| value: "custom-http", | ||
| title: "Custom HTTP", | ||
| description: "Any HTTP API, with headers and auth you define.", | ||
| eyebrow: "Generic", | ||
| icon: "cloud", | ||
| href: "https://infisical.com/docs", | ||
| external: true | ||
| }, | ||
| { | ||
| value: "mcp", | ||
| title: "MCP", | ||
| description: "Any server that speaks the Model Context Protocol.", | ||
| eyebrow: "Protocol", | ||
| icon: "link", | ||
| href: "https://modelcontextprotocol.io/docs/getting-started/intro", | ||
| external: true | ||
| } | ||
| ]; | ||
|
|
||
| export default function Example() { | ||
| return ( | ||
| <TilePicker | ||
| items={services} | ||
| searchLabel="Search services" | ||
| allLabel="All services" | ||
| noun="services" | ||
| /> | ||
| ); | ||
| } |
Uh oh!
There was an error while loading. Please reload this page.