-
Notifications
You must be signed in to change notification settings - Fork 827
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* chore(docs): fix ButtonDock typeo * chore(docs): skeleton - document autoSizeRows * chore(docs): add chevron small icons * chore(docs): document alwaysShowDescription and horizontal variant of progress-steps
- Loading branch information
Showing
8 changed files
with
117 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,66 @@ | ||
import * as React from 'react'; | ||
import { | ||
ProgressSteps, | ||
NumberedStep, | ||
ORIENTATION, | ||
} from 'baseui/progress-steps'; | ||
import { | ||
Button, | ||
SHAPE, | ||
ButtonProps, | ||
KIND, | ||
SIZE, | ||
} from 'baseui/button'; | ||
|
||
function SpacedButton(props: ButtonProps) { | ||
return ( | ||
<Button | ||
{...props} | ||
shape={SHAPE.pill} | ||
kind={KIND.secondary} | ||
size={SIZE.compact} | ||
overrides={{ | ||
BaseButton: { | ||
style: ({$theme}) => ({ | ||
marginLeft: $theme.sizing.scale200, | ||
marginRight: $theme.sizing.scale200, | ||
marginTop: $theme.sizing.scale800, | ||
}), | ||
}, | ||
}} | ||
/> | ||
); | ||
} | ||
|
||
function ProgressStepsContainer() { | ||
const [current, setCurrent] = React.useState(0); | ||
return ( | ||
<ProgressSteps | ||
current={current} | ||
orientation={ORIENTATION.horizontal} | ||
> | ||
<NumberedStep title="Create Account"> | ||
<SpacedButton disabled>Previous</SpacedButton> | ||
<SpacedButton onClick={() => setCurrent(1)}> | ||
Next | ||
</SpacedButton> | ||
</NumberedStep> | ||
<NumberedStep title="Verify Payment"> | ||
<SpacedButton onClick={() => setCurrent(0)}> | ||
Previous | ||
</SpacedButton> | ||
<SpacedButton onClick={() => setCurrent(2)}> | ||
Next | ||
</SpacedButton> | ||
</NumberedStep> | ||
<NumberedStep title="Add Payment Method"> | ||
<SpacedButton onClick={() => setCurrent(1)}> | ||
Previous | ||
</SpacedButton> | ||
<SpacedButton disabled>Next</SpacedButton> | ||
</NumberedStep> | ||
</ProgressSteps> | ||
); | ||
} | ||
|
||
export default ProgressStepsContainer; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
import * as React from 'react'; | ||
import {Skeleton} from 'baseui/skeleton'; | ||
|
||
export default function Example() { | ||
return ( | ||
<Skeleton autoSizeRows rows={3} height="100px" width="200px" /> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters