āāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāā ā š shadcn/directory/ibelick/prompt-kit/source/page ā āāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāā
āāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāā
ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā
import ComponentCodePreview from "@/components/app/component-code-preview" import { generateMetadata } from "../utils/metadata" import { SourceBasic } from "./source-basic" import { SourceCustom } from "./source-custom"
export const metadata = generateMetadata( "Source", "Displays website sources used by AI-generated content, showing URL details, titles, and descriptions on hover." )
Displays website sources used by AI-generated content, showing URL details, titles, and descriptions on hover.
<ComponentCodePreview component={<SourceBasic />} filePath="app/docs/source/source-basic.tsx" classNameComponentContainer="p-0" />
<ComponentCodePreview component={<SourceCustom />} filePath="app/docs/source/source-custom.tsx" classNameComponentContainer="p-0" />
<CodeBlock
code={npx shadcn add "https://prompt-kit.com/c/source.json"}
language="bash"
/>
<Step>Copy and paste the following code into your project.</Step>
<CodeBlock filePath="components/prompt-kit/source.tsx" language="tsx" /><Step>Update the import paths to match your project setup.</Step>
</Steps> </TabsContent> </Tabs>| Prop | Type | Default | Description | | :------- | :-------------- | :------ | :--------------------- | | href | string | | The URL of the source | | children | React.ReactNode | | The content to display |
| Prop | Type | Default | Description | | :---------- | :------ | :------ | :-------------------------- | | label | string | | The label to display | | showFavicon | boolean | false | Whether to show the favicon | | className | string | | Additional CSS classes |
| Prop | Type | Default | Description | | :---------- | :----- | :------ | :------------------------- | | title | string | | The title to display | | description | string | | The description to display | | className | string | | Additional CSS classes |
ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā
āāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāā