Manta Developers
GitHub
Menu

@manta-eu/react/section

Reference for @manta-eu/react/section as it is on main.

Type Aliases

SectionAction

SectionAction = object

Properties

disabled?

optional disabled?: boolean

hint?

optional hint?: string

icon?

optional icon?: LucideIcon

label

label: string

onClick

onClick: () => void

Returns

void


SectionActionsWrap

SectionActionsWrap = "end" | "start"


SectionHeadingLevel

SectionHeadingLevel = 2 | 3 | 4


SectionLink = object

Properties

label

label: string

to

to: string


SectionMenuItem

SectionMenuItem = object

Properties

checked?

optional checked?: boolean

disabled?

optional disabled?: boolean

icon?

optional icon?: LucideIcon

key

key: string

label

label: string

onSelect

onSelect: () => void

Returns

void


SectionMenuProps

SectionMenuProps = object

Properties

items

items: SectionMenuItem[]

label

label: string

onCloseAutoFocus?

optional onCloseAutoFocus?: (event) => void

Parameters
event

Event

Returns

void


SectionProps

SectionProps = object

Properties

action?

optional action?: SectionAction

actionsWrap?

optional actionsWrap?: SectionActionsWrap

caption?

optional caption?: ReactNode

children?

optional children?: ReactNode

className?

optional className?: string

optional foot?: ReactNode

headingLevel?

optional headingLevel?: SectionHeadingLevel

info?

optional info?: ReactNode

label?

optional label?: string

optional link?: SectionLink

optional menu?: SectionMenuItem[]

optional menuLabel?: string

meta?

optional meta?: ReactNode

secondaryAction?

optional secondaryAction?: SectionAction

settings?

optional settings?: ReactNode

surface?

optional surface?: SectionSurface

title?

optional title?: string


SectionSurface

SectionSurface = "panel" | "muted" | "plain"

muted is a borderless tinted panel, for a section on a card-colored page.


SeeAllLinkProps

SeeAllLinkProps = SectionLink & object

Type Declaration

className?

optional className?: string

Functions

Section()

Section(props): Element

Parameters

props

SectionProps

Returns

Element


SectionMenu()

SectionMenu(props): Element

Parameters

props

SectionMenuProps

Returns

Element


SeeAllLink(props): Element

Parameters

props

SeeAllLinkProps

Returns

Element