How can i create a nested details shortcode

can some one please help on this

read all about shortcodes:

You can use parameters and the .Inner value to give the shortcode the informaton.
Shortcodes can access the frontmatter page parameters and the site parameters in the config file.

(I think) parameters can have a more complicated structure (dict, slice, file, menu variables).

For better help give uds more information, A sample what you will do. Any repository to look at.