Skip to content

Menu

Menus display a list of choices on temporary surfaces. material.io

Importing

Menu components are an extension of the <List/> component

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
import React from "react";
import { Menu } from "photoncss/react";

export default function Component() {
    return (
        <Menu>
            ...content
        </Menu>
    );
}

Dynamic component

The snippet above will not render any visible content. To use Menus to their full potential, incorperate the Photon.Menu() method.