Skip to content

Commit

Permalink
added props
Browse files Browse the repository at this point in the history
  • Loading branch information
sarahgm committed Oct 7, 2024
1 parent e77f58a commit e4f102c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,12 @@ The `<SectionMessage>` component is used to capture the users atention to provid

This component should not be added on a dynymic way.

There are currently three different variants of the `<SectionMessage>` component. The `info` variant is set as default. Inside the `<SectionMessage>` it lends itself to using the [`<Text>`](/componentss/text/) component.
There are currently three different variants of the `<SectionMessage>` component. The `info` variant is set as default. Inside the `<SectionMessage>` it lends itself to using the [`<Text>`](/components/text/) component.

## Appearance

<AppearanceDemo component={title} />

<AppearanceTable component={title} />

## Props
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,8 @@
import {
SectionMessage,
SectionMessageProps,
Text,
} from '@marigold/components';
import { SectionMessage, Text } from '@marigold/components';
import type { SectionMessageProps } from '@marigold/components';

export default (props: SectionMessageProps) => (
<SectionMessage>
<SectionMessage {...props}>
<SectionMessage.Title>This page is read-only!</SectionMessage.Title>
<SectionMessage.Content>
<Text>
Expand Down

0 comments on commit e4f102c

Please sign in to comment.