Sources
Sources
Show the source address of the referenced data.
Importimport { Sources } from "@ant-design/x"; |
Sourcecomponents/sources |
Docs |
Importimport { Sources } from "@ant-design/x"; |
Sourcecomponents/sources |
Docs |
Show the referenced data source address in online search mode.
Common props ref:Common props
| Property | Description | Type | Default | Version |
|---|---|---|---|---|
| classNames | DOM class | Record<SemanticDOM, string> | - | - |
| styles | DOM style | Record<SemanticDOM, CSSProperties> | - | - |
| title | Title content | React.ReactNode | - | - |
| items | Sources Content list | SourcesItem[] | - | - |
| expandIconPosition | Icon position | 'start' | 'end' | 'start' | - |
| defaultExpanded | Default Expand state | boolean | true | - |
| expanded | Expand state | boolean | - | - |
| onExpand | Callback when expand changes | (expand: boolean) => void | - | - |
| onClick | Callback when click | (item: SourcesItem) => void | - | - |
| inline | Inline mode | boolean | false | - |
| popoverOverlayWidth | popover overlay width | number | string | 300 | - |
interface SourcesItem {key?: React.Key;title: React.ReactNode;url?: string;icon?: React.ReactNode;description?: React.ReactNode;}