--- name: components description: Ready-to-use components in Slidev --- # Built-in Components Ready-to-use components in Slidev. ## Navigation ### Link Navigate to slide: ```md Go to slide 5 Go to intro ``` ### SlideCurrentNo / SlidesTotal ```md Slide of ``` ### Toc (Table of Contents) ```md ``` Props: - `columns` - Number of columns - `maxDepth` / `minDepth` - Heading depth filter - `mode` - 'all' | 'onlyCurrentTree' | 'onlySiblings' ### TitleRenderer Render slide title: ```md ``` ## Animations ### VClick / VClicks ```md Shows on click - Item 1 - Item 2 ``` ### VAfter ```md First Shows with first ``` ### VSwitch ```md ``` ## Drawing ### Arrow ```md ``` Props: `x1`, `y1`, `x2`, `y2`, `width`, `color`, `two-way` ### VDragArrow Draggable arrow: ```md ``` ## Layout ### Transform Scale elements: ```md ``` Props: `scale`, `origin` ### AutoFitText Auto-sizing text: ```md ``` ## Media ### SlidevVideo ```md ``` Props: `controls`, `autoplay`, `autoreset`, `poster`, `timestamp` ### Youtube ```md ``` ### Tweet ```md ``` ## Conditional ### LightOrDark ```md ``` ### RenderWhen ```md Only in presenter mode ``` Context values: - `main` - Main presentation view - `visible` - Visible slides - `print` - Print/export mode - `slide` - Normal slide view - `overview` - Overview mode - `presenter` - Presenter mode - `previewNext` - Next slide preview ## Branding ### PoweredBySlidev ```md ``` ## Draggable ### VDrag ```md Draggable content ``` See [draggable](draggable.md) for details. ## Component Auto-Import Components from these sources are auto-imported: 1. Built-in components 2. Theme components 3. Addon components 4. `./components/` directory No import statements needed.