# Sources URL: /docs/ui/sources Display URL sources with favicon, title, and external link. *** title: Sources description: Display URL sources with favicon, title, and external link. ------------------------------------------------------------------------ import { InstallCommand } from "@/components/docs/fumadocs/install/install-command"; import { SourcesSample } from "@/components/docs/samples/sources-sample"; ## Getting Started ### Add `sources` ### Use in your application Pass `Sources` to `MessagePrimitive.Parts`: ```tsx title="/components/assistant-ui/thread.tsx" {1,8} import { Sources } from "@/components/assistant-ui/sources"; const AssistantMessage: FC = () => { return ( ); }; ``` ## Variants Use the `variant` prop to change the visual style. ```tsx // Subtle background // Secondary color // Border only // No background ``` ## Sizes Use the `size` prop to change the size. ```tsx // Small // Default // Large ``` ## Composable API The component exports composable sub-components: ```tsx import { Source, SourceIcon, SourceTitle } from "@/components/assistant-ui/sources"; Example ``` | Component | Description | | ------------- | ------------------------------------ | | `Source` | Root container, renders as `` | | `SourceIcon` | Favicon with domain initial fallback | | `SourceTitle` | Truncated title text | ## Related * [PartGrouping](/docs/ui/part-grouping) - Group sources by parentId