useDiv
Nui

Nui

useDiv

useDiv({
  parent: string
  id?: string
  style?: string
  content?: string
}): HTMLDivElement

Parameters

  • parent: the id or the class name of the parent element to attach to
  • content?: the innerHTML you want to insert to the div
  • id?: a unique identifier for the div
  • style?: the tailwind class lists, see Tailwind Docs (opens in a new tab)

Returns

  • HTMLDivElement: the div element