Intro
Panel er en enkel ramme som lar deg gruppere elementer sammen
Egnet til:
- Gruppering av innhold
Eksempler
Props
Panel
- as? React.ElementType
- OverridableComponent-api
- children ReactNode
- Panel content
- border?boolean
- Adds a border to panel when true
- className? string
- ref? Ref<HTMLElement>
- Allows getting a ref to the component instance. Once the component unmounts, React will set `ref.current` to `null` (or call the ref with `null` if you passed a callback ref). @see https://react.dev/learn/referencing-values-with-refs#refs-and-the-dom
- Panel extends HTMLElement
Tokens
Token | Fallback |
---|---|
--ac-panel-bg | --a-surface-default |
--ac-panel-border | --a-border-default |