[react] feat: Added docs for components/LineDrawing
This commit is contained in:
parent
439315de02
commit
254e271196
40 changed files with 1204 additions and 163 deletions
|
@ -10,9 +10,11 @@ const strokeScale = 1.2
|
|||
/**
|
||||
* A linedrawing component for Benjamin
|
||||
*
|
||||
* @param {object} props - All React props
|
||||
* @component
|
||||
* @param {object} props - All component props
|
||||
* @param {string} props.className - Any CSS classes to apply
|
||||
* @param {number} props.stroke - The stroke width to apply
|
||||
* @returns {JSX.Element}
|
||||
*/
|
||||
export const Benjamin = ({ className, stroke = 1 }) => (
|
||||
<LineDrawingWrapper viewBox="0 -44 138 138" {...{ className, stroke }}>
|
||||
|
@ -20,15 +22,21 @@ export const Benjamin = ({ className, stroke = 1 }) => (
|
|||
</LineDrawingWrapper>
|
||||
)
|
||||
|
||||
/*
|
||||
* Front is the same
|
||||
/**
|
||||
* A linedrawing component for the front of Benjamin
|
||||
*
|
||||
* @component
|
||||
* @param {object} props - All component props
|
||||
* @param {string} props.className - Any CSS classes to apply
|
||||
* @param {number} props.stroke - The stroke width to apply
|
||||
* @returns {JSX.Element}
|
||||
*/
|
||||
export const BenjaminFront = Benjamin
|
||||
|
||||
/*
|
||||
* SVG elements for the front
|
||||
*/
|
||||
export const Front = ({ stroke }) => (
|
||||
const Front = ({ stroke }) => (
|
||||
<>
|
||||
<path
|
||||
key="folds"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue