Media
Generate a Media component useful for cards, panels and chat
Import
import { Media } from "@webeetle/windy";
#
DefaultResult
SyntaxError: Unexpected token (1:8) 1 : return () ^
Live Editor
#
With ComponentsResult
SyntaxError: Unexpected token (1:8) 1 : return () ^
Live Editor
#
SizeResult
SyntaxError: Unexpected token (1:8) 1 : return () ^
Live Editor
#
RoundedResult
SyntaxError: Unexpected token (1:8) 1 : return () ^
Live Editor
#
StretchedResult
SyntaxError: Unexpected token (1:8) 1 : return () ^
Live Editor
#
NestedResult
SyntaxError: Unexpected token (1:8) 1 : return () ^
Live Editor
#
PropsProps | Type | Default |
---|---|---|
src | string | null |
media | node | null |
sizeToFit | bool | false |
size | ["xs", "sm", "md", "lg", "xl"] | md |
position | ["start", "end"] | start |
align | ["center", "start", "end"] | start |
rounded | ["sm", "md", "lg", "full", "none"] | full |