mirror of
https://github.com/picocss/pico.git
synced 2025-04-25 18:56:15 -04:00
23 lines
402 B
TypeScript
23 lines
402 B
TypeScript
import { createHTMLElement } from "../HTMLElement";
|
|
|
|
export default {
|
|
title: "InteractiveElements/Details",
|
|
tags: ["autodocs"],
|
|
args: {
|
|
content: "Content",
|
|
name: "details",
|
|
open: false,
|
|
},
|
|
// Render the <html> element
|
|
render: (args) => {
|
|
return createHTMLElement("details", args);
|
|
},
|
|
};
|
|
|
|
export const Default = {};
|
|
|
|
export const Open = {
|
|
args: {
|
|
open: true,
|
|
},
|
|
};
|