

Returns a read-only CSS className for the loaded font to be passed to an HTML element.Menus Icon Bar Menu Icon Accordion Tabs Vertical Tabs Tab Headers Full Page Tabs Hover Tabs Top Navigation Responsive Topnav Split Navigation Navbar with Icons Search Menu Search Bar Fixed Sidebar Side Navigation Responsive Sidebar Fullscreen Navigation Off-Canvas Menu Hover Sidenav Buttons Sidebar with Icons Horizontal Scroll Menu Vertical Menu Bottom Navigation Responsive Bottom Nav Bottom Border Nav Links Right Aligned Menu Links Centered Menu Link Equal Width Menu Links Fixed Menu Slide Down Bar on Scroll Hide Navbar on Scroll Shrink Navbar on Scroll Sticky Navbar Navbar on Image Hover Dropdowns Click Dropdowns Cascading Dropdown Dropdown in Topnav Dropdown in Sidenav Resp Navbar Dropdown Subnavigation Menu Dropup Mega Menu Mobile Menu Curtain Menu Collapsed Sidebar Collapsed Sidepanel Pagination Breadcrumbs Button Group Vertical Button Group Sticky Social Bar Pill Navigation Responsive Header You can apply the font styles in three ways: src:'./fonts/my-font.woff2' where my-font.woff2 is placed in a directory named fonts inside the app directory.The path of the font file as a string or an array of objects (with type Array) relative to the directory where the font loader function is called. Font Function Argumentsįor usage, review Google Fonts and Local Fonts.


For features and usage, please see the Optimizing Fonts page. This API reference will help you understand how to use next/font/google and next/font/local.
