code/editor/FileIcon
import { … } from 'zidane-ui/code/editor'ui/src/code/editor/FileIcon.tsx
Components#
FileIconComponent#
A file's coloured icon, resolved from its name the way the Files tab resolves it. Decorative (aria-hidden).
const FileIcon: MemoExoticComponent<(__namedParameters: FileIconProps) => Element>TreeChevronComponent#
The tree's folder chevron (points down; turned to point right while closed).
function TreeChevron(props: TreeChevronProps): ElementParameters
| Name | Type | Description |
|---|---|---|
| props | TreeChevronProps |
|
Returns
ElementProps
| Name | Type | Description |
|---|---|---|
| className? | string | Extra classes on the svg. |
| open | boolean | The folder is expanded: the chevron points down. |
| style? | CSSProperties | Inline styles on the root element, merged after the component's own. |
Interfaces#
FileIconPropsInterface#
Props for FileIcon.
interface FileIconPropsProperties
| Name | Type | Description |
|---|---|---|
| className? | string | Extra classes on the root element. |
| path | string | The file's path or name; its icon is resolved from it. |
| style? | CSSProperties | Inline styles on the root element, merged after the component's own. |
TreeChevronPropsInterface#
Props for TreeChevron.
interface TreeChevronPropsProperties
| Name | Type | Description |
|---|---|---|
| className? | string | Extra classes on the svg. |
| open | boolean | The folder is expanded: the chevron points down. |
| style? | CSSProperties | Inline styles on the root element, merged after the component's own. |