@instructure/ui-toggle-details

A styled toggleable, accordion-like component.

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
@instructure/ui-toggle-details
387108.29.03 days ago5 years agoMinified + gzip package size for @instructure/ui-toggle-details in KB

Readme

---

category: packages

ui-toggle-details

!npmnpmnpm-url  !MIT Licenselicense-badgelicense  !Code of Conductcoc-badgecoc
A styled toggleable, accordion-like component.

Components

The ui-toggle-details package contains the following:

Installation

yarn add @instructure/ui-toggle-details

Usage

import React from 'react'
import { ToggleDetails } from '@instructure/ui-toggle-details'

const MyToggleDetails = () => {
  return (
    <ToggleDetails summary="Hello toggle">
      <Text>Hello details</Text>
    </ToggleDetails>
  )
}